857
Views
10
Comments
Internal Server Error.  Unable to connect to the remote server
Question

Hi,

I am new to Outsystems and was trying to consume a RESTful API but have been getting "Internal Server Error. Unable to connect to the remote server" even after providing the request headers and response.

When I looked in the Logs of Service Centre "RESTDevServiceExtension.InvokeRESTService took 21033 ms" message is displayed.

I tried to go through the forums and Documentation but couldn't get the solution. Was able to get the response on postman so any help would be really helpful.

Thank You.

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Shivam,

Did you try to consume the Rest API from any testing tool like Postman or Fiddler ? Also if you are consuming the api in your personal cloud environment you need to make sure the the API is accessible publicly.


Regards,

-PJ-

UserImage.jpg
Shivam Sood

Yes, I tried to test it on Postman and was able to get the response.

Is there any way to access the API which cannot be accessed publicly through proper authentication ?

2021-04-09 11-42-43
assif_tiger
 
MVP

Shivam Sood wrote:

Hi,

I am new to Outsystems and was trying to consume a RESTful API but have been getting "Internal Server Error. Unable to connect to the remote server" even after providing the request headers and response.

When I looked in the Logs of Service Centre "RESTDevServiceExtension.InvokeRESTService took 21033 ms" message is displayed.

I tried to go through the forums and Documentation but couldn't get the solution. Was able to get the response on postman so any help would be really helpful.

Thank You.

Share the proper log so that folks here can help you & make sure it is https base URl.

https://www.outsystems.com/forums/discussion/33272/setting-logging-level-of-a-rest-api/


UserImage.jpg
Shivam Sood

assif_tiger wrote:

Shivam Sood wrote:

Hi,

I am new to Outsystems and was trying to consume a RESTful API but have been getting "Internal Server Error. Unable to connect to the remote server" even after providing the request headers and response.

When I looked in the Logs of Service Centre "RESTDevServiceExtension.InvokeRESTService took 21033 ms" message is displayed.

I tried to go through the forums and Documentation but couldn't get the solution. Was able to get the response on postman so any help would be really helpful.

Thank You.

Share the proper log so that folks here can help you & make sure it is https base URl.

https://www.outsystems.com/forums/discussion/33272/setting-logging-level-of-a-rest-api/


Pl find the attachment.


err.PNG
2021-04-09 11-42-43
assif_tiger
 
MVP

Shivam Sood wrote:

assif_tiger wrote:

Shivam Sood wrote:

Hi,

I am new to Outsystems and was trying to consume a RESTful API but have been getting "Internal Server Error. Unable to connect to the remote server" even after providing the request headers and response.

When I looked in the Logs of Service Centre "RESTDevServiceExtension.InvokeRESTService took 21033 ms" message is displayed.

I tried to go through the forums and Documentation but couldn't get the solution. Was able to get the response on postman so any help would be really helpful.

Thank You.

Share the proper log so that folks here can help you & make sure it is https base URl.

https://www.outsystems.com/forums/discussion/33272/setting-logging-level-of-a-rest-api/


Pl find the attachment.


Hi,

The REST API is getting a timeout, as per log it is taking 21042ms i.e 21.042 Seconds.

You can either optimize the API to response within your configured time seconds 

or

You can simply Increase the Timeout Seconds value.


Ref below to how to configure the API Timeout seconds value:

Solution 1: Set default Timeout 

 - Click on Module & under Defaults properties set the Server request Timeout Property


Solution 2: You can also set for each API

- Got Integration -> REST -> Your REST API Method

- Set Timeout in Seconds Property

Also try to access service center -> Monitoring -> Integration and find the invocation for that consumed REST API. You should see there the invocation duration and status?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Troubleshoot_a_REST_API

Cheers

Assif

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Shivam,

If you are trying to access it from your personal cloud and is not accessible publicly you will get the issue like you are getting now.

In order to access the rest API from any where it should be on public domain and there is no other way to access it.

Regards

-PJ-

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi assif,

This is not a timeout issue as the default timeout for Rest\Soap Api is 100 seconds. Also if you see the log h mentioned in the first post which says "Internal Server Error. Unable to connect to the remote server" . It is clearly saying that the endpoint is unreachable.

@Shivam - Can you please  let me know where did you create the Rest API or it created by someone else that you are consuming in your application.Also like i said that if it is not a public API you cannot consume it from Personal Cloud environment.


Regards,

-PJ-

2021-04-09 11-42-43
assif_tiger
 
MVP

PRAMOD JAIN wrote:

Hi assif,

This is not a timeout issue as the default timeout for Rest\Soap Api is 100 seconds. Also if you see the log h mentioned in the first post which says "Internal Server Error. Unable to connect to the remote server" . It is clearly saying that the endpoint is unreachable.

@Shivam - Can you please  let me know where did you create the Rest API or it created by someone else that you are consuming in your application.Also like i said that if it is not a public API you cannot consume it from Personal Cloud environment.


Regards,

-PJ-

Hi Pramod,

Yup correct but what Shivam shared in the further post is below:


UserImage.jpg
Maitha Khanji

I am getting same error. It is working perfectly in Postman but not in Outsystems. I am trying to consume REST API in our internal network.

UserImage.jpg
Ashish Akolkar

Hi All,


Does anybody found solution to this?

Thanks & Regards

Ashish A

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