Hmm.. OpenAI bunch a few things into some error. Iirc this could be because you're out of credits / don't have a valid payment method on file, but it could also be that you're hitting rate limits. The Vision API could be the culprit, while in beta you can only call it X amount of times per day (X varies by account).
Make the console.log:s for the three API calls a bit more verbose to find out which call is causing this, and if there's more info in the error body.
Make the console.log:s for the three API calls a bit more verbose to find out which call is causing this, and if there's more info in the error body.