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

fix: Handle poe error responses to indicate account may be banned #455

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qcgm1978
Copy link
Contributor

The error response likely indicates the account is banned as #329 described

截屏2023-07-23 17 43 19

…e error response likely indicates the account is banned if using the same credentials as sunner#329.
@vercel
Copy link

vercel bot commented Jul 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chatall ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2023 9:45am

@sunner
Copy link
Owner

sunner commented Jul 23, 2023

Are all 400 error mean banned?

@qcgm1978
Copy link
Contributor Author

qcgm1978 commented Jul 24, 2023

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.

const secretCode = response.data.match(
  /var .=".*",.*window\..*=function\(\)\{return .\.join\(""\)\};/,
);

@sunner
Copy link
Owner

sunner commented Jul 24, 2023

If we don't know it exactly, we should not put it in code.

@sunner sunner closed this Jul 24, 2023
@sunner sunner reopened this Jul 24, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants