You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: