langflow
langflow copied to clipboard
InvalidSignature: Signature did not match digest Error with Invalid API Key and Corrupted Existing Key
Bug Description
When providing an invalid OpenAI API key to the agent component, the following error message is displayed:
InvalidSignature: Signature did not match digest
Additionally, an old working OpenAI API key variable became corrupted and started showing the same error, even though it was previously functioning correctly.
Actual Behavior The following error message is received: InvalidSignature: Signature did not match digest
hotfix Fix
Replacing the corrupted API key variable with a new one resolves the issue. However, it’s unclear how the previously working key became corrupted.
Additional Information • The misleading error message makes it difficult to diagnose the issue when an invalid API key is provided. • The corruption of a valid API key variable is concerning and may indicate an underlying issue with how API keys are handled or stored.
Reproduction
1. Open the simple agent template.
2. Provide a dummy invalid OpenAI API key.
3. Run the agent.
Expected behavior
Expected Behavior
A clear and descriptive error message indicating that the provided OpenAI API key is invalid or unauthorized. Also the existing working keys should not have got corrupted.
Who can help?
@italojohnny @anovazzi1
Operating System
Mac OS
Langflow Version
1.1.1 Main
Python Version
3.12
Screenshot
No response
Flow File
No response