Open amenk opened 10 months ago
PS: I got an error from the pipeline for this issue: https://github.com/n8n-io/n8n/actions/runs/6810063907
@amenk Is it possible you're hitting TPM/RPM/RPD rate limits for your OpenAI org? Because model will retry 6 times with an exponential backoff between each attempt. Which could seem like it's hanging but it's waiting to re-try. I'll add a configuration option in the model for this, so you'd be able to disable/lower retries.
@OlegIvaniv Yes I also assume that there is some limit hit at OpenAI.
@amenk You can check your usage in OpenAI usage dashboard
@OlegIvaniv Yeah, sure. But I believe I don't see the current rate limits there. Was more thinking about the response headers. Does not seem even to be displayed with the "debug" log level.
Also it was my first run today, so I should not have hit limits. But it's all guessing ;-) On the second run it worked (after restarting the docker container)--- but I saw similar issues during the last days sporadically.
The main reason I opened the issue is because of the hard-hang, I believe that should never happen, even if an external API is limiting?
I found a new hint in the log
2023-11-10T11:54:28.721Z | error | WorkflowOperationError: Only running or waiting executions can be stopped and 408 is currently crashed. "{ file: 'LoggerProxy.js', function: 'exports.error' }"
How to handle such crashed executions?
Is this considered a bug? Are there any workarounds? Can the exponential back-off somehow be limited? There is retry-on-fail configuration, but it's also happening when this is off.
Is any other log existing which could help here? I think "debug" is already the highest loglevel?
Describe the bug
When using LangChain on the AI Beta the workflow hangs, does not finish and also cannot be stopped
To Reproduce No always reproducible, but more often than not
Expected behavior
All works, or at least an error appears if something is wrong with the ChatGPT API / and the workflow can be stopped
Environment (please complete the following information):
docker.n8n.io/n8nio/n8n ai-beta f38ede559f01 5 days ago 754MB
Additional context
On the console I see:
After pressing Ctrl+C