Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when looping Answers.Yes #1

Open
ausgore opened this issue Jul 26, 2024 · 4 comments
Open

Error when looping Answers.Yes #1

ausgore opened this issue Jul 26, 2024 · 4 comments

Comments

@ausgore
Copy link
Contributor

ausgore commented Jul 26, 2024

SyntaxError: Unexpected token '<', "
<html lang"... is not valid JSON

I did as suggested in the README.md to test out the client by continuously answering yes. It worked the first time, but broke the second time. The only way I fixed this is by catching the error. It seems that this is very inconsistent.

@realcoloride
Copy link
Owner

Hello there! I'll investigate this.

@realcoloride
Copy link
Owner

realcoloride commented Jul 26, 2024

Hello again, where did you do the try catch error? I never got the error on my end.
Could you try to print the text or status code when it happens for you?

Also, could you send the stack trace?

@ausgore
Copy link
Contributor Author

ausgore commented Jul 27, 2024

The issue is that it appears to be random. I wasn't able to replicate the issue again so I can't get the stack trace, but I'll send it here when I have something.

I only do know that when using AkinatorClient#answer, it would throw that error although it can be bypassed by simply catching and attempting to answer again.

@realcoloride
Copy link
Owner

Okay, let me know. Perhaps it is a rate limit issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants