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

authentication token renewal failed with status code 400 #11

Open
yrd opened this issue Sep 19, 2022 · 0 comments
Open

authentication token renewal failed with status code 400 #11

yrd opened this issue Sep 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@yrd
Copy link
Member

yrd commented Sep 19, 2022

Sometimes happens when using the same client for a while. Traceback:

  File "/home/echobot-connector/.local/lib/python3.8/site-packages/zucker/model/view.py", line 532, in __anext__
    new_records = await self.view._module.get_client().bulk(
  File "/home/echobot-connector/.local/lib/python3.8/site-packages/zucker/client/base.py", line 619, in bulk
    await self._ensure_authentication()
  File "/home/echobot-connector/.local/lib/python3.8/site-packages/zucker/client/base.py", line 426, in _ensure_authentication
    self._finalize_authentication(auth_job_name, response_code, response_json)
  File "/home/echobot-connector/.local/lib/python3.8/site-packages/zucker/client/base.py", line 234, in _finalize_authentication
    raise ZuckerException(
zucker.exceptions.ZuckerException: authentication token renewal failed with status code 400

Relevant code:

if not (200 <= response_code < 300):
raise ZuckerException(
f"{auth_job_name} failed with status code {response_code}"
)

@yrd yrd added the bug Something isn't working label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant