missing HTTP response validation in the profile fetch logic#647
missing HTTP response validation in the profile fetch logic#647annrose2277-glitch wants to merge 1 commit into
Conversation
✅ Deploy Preview for github-spy ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR improves HTTP status handling in the GitHub user fetch by adding an explicit ChangesHTTP Status Check
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🎉 Thank you @annrose2277-glitch for your contribution. Please make sure your PR follows https://github.com/GitMetricsLab/github_tracker/blob/main/CONTRIBUTING.md#-pull-request-guidelines
Related Issue
Description
This PR fixes a critical bug where the application would silently fail or crash if the GitHub API returned a non-200 response (like a 404 for a missing user). Added an
if (userRes.ok)check to validate the HTTP response status before attempting to parse the JSON.How Has This Been Tested?
Type of Change
Summary by CodeRabbit