How is your experience with the OutSystems Community?
32
Views
6
Comments
popup error when I invoke the api (if takes long time)
Question

HI There ,

When I invoke deepseek/openai api.  if the message is "hi" or short message , it will feedback the reply correctly.  but  if I send more words ,for examples 1000 words (it will take long time), it will show error below ( same message I use postman , it will be fine.):

Error Executing Test. The underlying connection was closed: An unexpected error occurred on a receive. 

Thanks in advance , if you could help.

Jack

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Jack Bao ,

Can you please give us more details on how you integrated this api ? You're using O11 or ODC?

Also please take a look at this post: Tip: The underlying connection was closed: An unexpected error occurred on a receive | OutSystems .

2021-01-01 09-23-30
Michael de Guzman
Champion

Hi Jack,

Which one are you on, ODC or O11?

Try increasing the timeout of your application. You can find this setting in your application properties in Studio. However, ODC allows up to 60 seconds. In O11, there is no hard ceiling.

If you're on ODC and still going over that 60s cap, move the call into a Timer or Workflow instead, so it runs outside the request timeout, and have the UI poll for the result.




2022-02-24 18-00-20
Swen Simon

Check the length of the text attribute, where you are storing the response. 

It is probably still set to 50 characters. Just increase it and it should work

2024-07-12 05-57-50
Gourav Shrivastava
Champion

This looks like a timeout issue in OutSystems, especially since the same request works in Postman.

Try increasing the REST API request timeout and test with smaller inputs first.

If small prompts work but larger ones fail, the request is likely taking longer than the OutSystems timeout allows.

2026-02-26 06-29-24
Rahul
 
MVP

I noticed that several replies in this thread are repeating essentially the same suggestion about increasing the timeout. While that can be relevant, repeating the same recommendation without additional context doesn't really help move the discussion forward.

Also, @Mihai Melencu  comment is a good example of adding value by asking for the missing details and pointing to a relevant troubleshooting resource.

2025-08-07 06-30-56
Amit J
Champion

It's a timeout, not a real error — long prompts take longer, and OutSystems cuts the connection before the API responds. Short ones finish before that limit, so they work.

Fix: Go to the REST method → Properties → increase the Timeout value (e.g., 30000 → 120000 ms). 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.