Closed alfuwu closed 1 year ago
Sometimes there are server-side errors when sending a message
I do not know if my library is the source of the problem, but it seems to me that it is not
I partially fixed this in v0.5.0. Now, instead of an error, the source code of the site with an error will be returned
JSON error and error 500 fixed on v0.6.0
code:
strangely, this error doesn't occur when the message has to wait for Cloudflare or when its the first message sent to the library.
EDIT: I set the library to print the output so that I could attempt to find out what was wrong. When the error was thrown, this was the output, which is definitely not JSON:
From the above output, I assume that something is wrong with either the way the library fetches data or just server errors on c.ai's side, although I can use the site normally so I'm leaning towards the former.