-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: Handle poe error responses to indicate account may be banned #455
base: main
Are you sure you want to change the base?
Conversation
…e error response likely indicates the account is banned if using the same credentials as ai-shifu#329.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Are all 400 error mean banned? |
I’m not sure if all 400 errors mean banned, but my account seems to be banned. I can’t use POE in the app and it’s returning 400. I just found poe html seems changed. The following code doesn't work any more. Maybe it indicates the account is banned too. However, the robot will not be activated after this PR processing, and the results will not be affected.
|
If we don't know it exactly, we should not put it in code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @sunner. If we don't have reliable evidence, it's best not to hard-code assumptions. Having more precise logic based on solid evidence would be ideal. Let's see if we can find more clues to improve our accuracy in handling this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
Comments skipped due to low confidence (2)
src/bots/poe/PoeBot.js:227
- The error code 'ERR_BAD_REQUEST' might not be specific enough to indicate a banned account. Consider verifying the error code or adding a more specific check.
if (error.code == 'ERR_BAD_REQUEST') {
src/bots/poe/PoeBot.js:228
- Ensure that the error message concatenation is done correctly and does not lead to any potential issues.
error.message += '. Your account may be banned';
The error response likely indicates the account is banned as #329 described