-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
node-kitsu seems to assume that the Kitsu API will always return a proper JSON response. If the API does not return a proper JSON response, a syntax error is thrown during the parsing of the response.
I am currently using async/await syntax wrapped in a try/catch, and the syntax error seems to occur outside of my try/catch, causing the app to crash.
The issue can be recreated if a request is made while Kitsu is experiencing some kind of downtime. Rather than a JSON response, the API returns an HTML error page, causing the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels