-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Version
No response
Current Behavior
In the githubRequest function of the githubApi.ts file, the error handling logic is incomplete. When the API returns a non-JSON response or a network error occurs, the error is silently ignored and null is returned. This results in the loss of important error information, which hinders debugging and problem diagnosis.
Current Behavior:
All errors are silently ignored and null is returned.
Developers cannot distinguish between network errors, authentication errors, parsing errors, and other error types.
Non-JSON responses will cause parsing exceptions, but the error information is discarded.
Expected Behavior
Meaningful error information should be provided when an API request fails.
Check the response content type to ensure it is in JSON format.
Errors should be properly logged and propagated to facilitate debugging.
Environment
- OS:
- Browser:Any additional comments?
No response