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

Response 413 error in get_account_info_v2() #28

Closed
QingqiLei opened this issue Dec 28, 2023 · 3 comments
Closed

Response 413 error in get_account_info_v2() #28

QingqiLei opened this issue Dec 28, 2023 · 3 comments

Comments

@QingqiLei
Copy link
Contributor

QingqiLei commented Dec 28, 2023

Hi,
get_account_info returns info for the selected account, not all accounts.
So, I try to use get_account_info_v2, but the response is always 413.
Does anyone else meet this issue?

@WinesProof
Copy link
Contributor

I don't get this error now, but HTTP error code 413 is "Request Entity Too Large", which I reported in #20. The fix in that case was to remove the 'ADRUM_BT1' and 'ADRUM_BTa' cookies prior to the request that failed. Jafer added this to the beginning of the update_token method, which gets called at the beginning of get_account_info_v2, but if the token update re-creates those cookies, we might need to remove them again before the http request in get_account_info_v2.

I can't reproduce your error, though, so I can't try it myself. Can you try?

@cnMuggle
Copy link
Contributor

cnMuggle commented Dec 28, 2023

I think I saw this error before. I comment out update_token() in get_account_info_v2 and re-login again to bypass it.
This issue only happens when the program continues request data from the API, not failed all the time.

@QingqiLei
Copy link
Contributor Author

After removing update_token() in get_account_info_v2(), it works. Thanks

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

3 participants