You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running a pipeline with a PromptNode, we retry HTTP requests that return a 401 error code. We should not retry these, but instead fail early.
Error message
No error thrown, that is the message on which it is retried
WARNING:haystack.utils.reflection:OpenAIError - OpenAI returned an error. │
│ Status code: 401 │
│ Response body: { │
│ "error": { │
│ "message": "Incorrect API key provided: **************************************. You can find your API key at https://platform.openai. │
│ "type": "invalid_request_error", │
│ "param": null, │
│ "code": "invalid_api_key" │
│ } │
│ }
Expected behavior
Don't retry a 401 and raise an exception.
Additional context
/
To Reproduce
Create a pipeline with an openai PromptNode, let the pipeline run and delete the key in the background.
Describe the bug
When running a pipeline with a PromptNode, we retry HTTP requests that return a 401 error code. We should not retry these, but instead fail early.
Error message
No error thrown, that is the message on which it is retried
Expected behavior
Don't retry a 401 and raise an exception.
Additional context
/
To Reproduce
Create a pipeline with an openai PromptNode, let the pipeline run and delete the key in the background.
FAQ Check
System:
The text was updated successfully, but these errors were encountered: