Can't connect to remote server

Hi -

When making an API call to GPT, I keep getting the ‘Cannot connect to remote server’ error even when the workflow has been running for less than 300 seconds.

I am trying to determine whether this is a Bubble or OpenAI error. If it’s Bubble, any suggested solutions?



Have you tried the same call via postman? I usually start there to troubleshoot it and see where the issue is etc

Do you run this in Bubble or externally?

Send a screenshot of your API call configuration. It’s a problem with your API call, not Bubble or Postman.

Add a max_token or your JSON will be invalid

Yeah, that isn’t the issue. It is initialized successfully and always works, except sometimes it says the remote server error after running for 30 - 60 seconds

The workflow always runs for less then 300 seconds when hitting the error

Screenshot 2024-02-08 at 10.15.19 AM
Here is an example

Are you sure your API call is valid? You’re formatting the message as JSON safe, and providing all of the model, max_tokens, temperature, and n values? Can you send a screenshot of the API call action?

Yes, I am certain. When I run the API call with a simple, short prompt, it returns fine. 90% of the time it us successful. I only get this error when I have a large input and am requesting a large output

you can test it externally in postman to verify if its a problem caused by a Bubble constraint etc, just create a free account at


Hey Oliver -

I just ran this exact call on Postman and it was successful after 4:15 mins. When running the exact API setup in Bubble, it fails.

1 Like

Actually, I am reviewing now. There may be a discrepancy between the models. I will report back

Nevermind, tested with 4 models, same error on all.

I did see someone else posting about this issue - Bubble increased the timeout on calls to OpenAI a while back, so it’s 150 seconds. I seem to think they increased it to 5 minutes as well, but I can’t remember and can’t find a source so don’t quote me.

Hm yeah, I was under the impression that they increased it 5 mins as well? Maybr that is just for standard workflows and not API calls?

Ah damn yes, just timed it and it is timing out at 150 seconds. Dammit

1 Like

One potential thing you could do is use an intermediary server or service like, idk what their max timeout is but you can use a service to make the call and then send it back to bubble like a web hook.

Not ideal, but a work around