Closed DemonMartin closed 5 months ago
We're aware of the server connectivity issues. Our service is experiencing spikes in traffic, and as a result, you may sometimes run into 5xx responses like you posted here. While we work on upgrading the infra to support increased load, we suggest catching these types of errors and retrying the request until you receive a 2xx response.
Edit: Code 500 for this issue was thrown due to reasons other than the previous comment.
I retried 25 times... Additionally, I think the module should be updated to catch those errors and return a correct error instead of saying "Unexpected token '<', "<!DOCTYPE "... is not valid JSON" due to invalid parsing.
The token endpoint cannot be accessed using a GitHub key. The server now returns a 403 if a GitHub key is used for an unavailable endpoint. The Node.js wrapper has updated to throw the correct error in commit c713762ace5c9f80257606fb6cd0bad0582e3b4f.
When using the NPM Module, I receive this error:
When I edited the nopecha.js to give me the body in text, it responds with this:
My code used: