Skip to content

Conversation

@waldnzwrld
Copy link

This PR updates messaging for authentication failures

@linear
Copy link

linear bot commented Apr 2, 2025

QUO-996 Improve error message for authentication failure in client

freddie said:

OK so taking a look at that error, it looks like what happened was:

• The client tried to authenticate itself • It failed to connect to the server -- for some reason unclear. our error message [APIConnectionError please try again later] needs more info. we need to modify this
• We raised an exception
• Their gunicorn worker didn't start because of the raised exception

website-1  |   File "/chatsimple/chatsimple_app/bot/chatgpt.py", line 25, in module
website-1  |     quotient = QuotientAI(api_key=QUOTIENT_API_KEY)
website-1  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
website-1  |   File "/usr/local/lib/python3.12/site-packages/quotientai/client.py", line 299, in __init__
website-1  |     self.auth.authenticate()
website-1  |   File "/usr/local/lib/python3.12/site-packages/quotientai/resources/auth.py", line 6, in authenticate
website-1  |     response = self._client._get("/auth/profile")
website-1  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
website-1  |   File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
website-1  |     return copy(f, **args, ***kw)
website-1  |            ^^^^^^^^^^^^^^^^^^^^
website-1  |   File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
website-1  |     do = self.iter(retry_state=retry_state)
website-1  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
website-1  |   File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
website-1  |     result = action(retry_...

@waldnzwrld waldnzwrld merged commit a93b70c into main Apr 2, 2025
2 checks passed
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.

3 participants