Soddenly all of my OpenAI api calls, which were working fine, give the HTTP 400 invalid request error. I have tried every method of addressing the error to no avail. I also cannot generate a new secret key. Previously this problem cropped up and replacing the secret key solved it. But can’t generate a new key, goes into a stuck loop.
Hi! You could maybe check this and see if it could be a reason - Error retrieving 'completions': 400 Bad Request - Prompting - OpenAI Developer Forum
Hi thanks for your response. I believe I came up with a good solution, which I posted here:
[
Solving JSON Escaping Issues for API Calls in Bubble.io (HTTP 400 Error)
forum.bubble.io
](Solving JSON Escaping Issues for API Calls in Bubble.io (HTTP 400 Error))
Got it, did you trying using the :formatted as JSON-safe operator?
Yes but it was ineffective. This solution seems to be robust so far.
This topic was automatically closed after 70 days. New replies are no longer allowed.