113
Views
8
Comments
Error while consuming REST API
Application Type
Mobile

Hello,

I am getting an error while consuming the REST API in Outsystems with "Error Executing Test. The operation has timed out.". In Postman the API is working fine but giving error in Outsystems. Any idea what am I missing here? I have configured all the headers and authentication correctly as per the postman still getting this error.

In service center when I checked the logs, it is showing below error.


Also, in service center when I am checking the consumed REST APIs in integrations tab of that module, in that also it is not visible. Any idea why it is not showing up there?

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Kaustubh Kamble,

Can you please check below points:

  •  Check OnAfterResponse of API what is coming in "ResponseText".
  •  Change Logging Level from Default to Full in Service Center. To check more details inside the log.

Please refer below link:

https://www.outsystems.com/forums/discussion/81850/the-operation-has-timed-out/


Regard,

Rajat Agrawal

2019-01-07 16-04-16
Siya
 
MVP

The error message "Unable to connect to the remote server" indicates that your platform server is unable to establish a connection with the API Server. Could you test the API Server from your desktop using Postman to see if it works?

2023-06-10 09-22-21
Kaustubh Kamble

Hello Siya,

I tried from same desktop using Postman and it is working. Not sure why exactly it is failing in Outsystems.

2019-01-07 16-04-16
Siya
 
MVP

Could you describe how the API Server and the OutSystems Platform server are configured? Is the API Server on-premise and not accessible from outside your network, with the OutSystems server hosted on the cloud? Or is it the other way around, with the OutSystems server on-premise and unable to connect to an API Server that's on the internet? 

2018-12-04 15-29-30
Michiel Moens

Hi,

Is it possible that your dekstop is connected to a VPN? If yes, it's possible that you can only reach your API from inside the network. In that case you would need a VPN Tunnel from OutSystems to the network where your API is running.

Best regards,
Michiel

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Kaustubh,

It seems that the API is accepting a connection from your local computer, but not from the OutSystems cloud server. This can have a number of reasons, though most likely it's firewall settings. Where is the API running? Is that server under your control, or can you ask someone who's responsible for the server to check the firewall loggings?

2024-07-16 17-36-51
Shradha Rawlani

Hello

Please check your API call URL and Authentication 

Regards

Shradha

2021-01-04 08-13-48
Toto
 
MVP

I have encounter this problem multiple times.

This is what I suggest :

1. if Outsystems is Outsystems Cloud, then check the REST provider and ask to whitelist the Outsystems Cloud IP and/or domain.

2. if Outsystems is On Prem, do the #1 and also check firewall on your on premises Outsystems, to whitelist the REST Provider.

Most of the case, this will solve this problem (like Kilian inform you above, most likely Firewall).

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