Skip to content

Conversation

@Angel98518
Copy link
Contributor

Prevent caching incomplete user data that's missing required fields (id, created_at). This prevents crashes when later code tries to access these fields.

Changes:

  • Added validation before caching user data in get_github_user()
  • Returns data without caching if required fields are missing
  • Added descriptive warning log for debugging

Contribution by Gittensor, learn more at https://gittensor.io/

daniel and others added 4 commits December 19, 2025 08:24
Prevent caching incomplete user data that's missing required fields (id, created_at).
This prevents crashes when later code tries to access these fields.

Changes:
- Added validation before caching user data in get_github_user()
- Returns data without caching if required fields are missing
- Added descriptive warning log for debugging

Contribution by Gittensor, learn more at https://gittensor.io/
@anderdc
Copy link
Collaborator

anderdc commented Dec 23, 2025

have you observed any times when the github api has returned incomplete responses? this seems like an unnecessary edge case solution

@Angel98518
Copy link
Contributor Author

have you observed any times when the github api has returned incomplete responses? this seems like an unnecessary edge case solution

Thank you for your reply. You mean my changes are unnecessary for this repository?

@LandynDev LandynDev closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants