Closed mayorgergich closed 7 months ago
@mayorgergich Did your error message also have a "Full error from OpenAI" line on it? It should have, so if you can share that, it'll be helpful!
Hi @TomFrankly ! Here is everything from the pipedream page. Unfortunately I don't see the referenced line anywhere.
@mayorgergich thanks for that detail! I think is a generic APIConnectionError from OpenAI, which means it doesn't get a status code but generally means the script was unable to connect to the OpenAI API. This is likely due to factors beyond our control – e.g. issues at OpenAI, or with AWS Lambda (what Pipedream workflows run on).
However, I've gone in and improved the code so that it'll now retry a few times if it hits this generic error. Previously, it would look for a status code before retrying, as I didn't know OpenAI's API had an error type that lacked a status code.
You can update your workflow like so: https://thomasjfrank.com/how-to-transcribe-audio-to-text-with-chatgpt-and-notion/#update
Hopefully this at least reduces the rate of errors like this, since the script will now retry automatically if it hits one!