Error While hitting API outbound POST Method

naveenreddy0871
Tera Contributor

Hi , 

I am getting below error while hitting REST API outbound POST method , I am using Basic authentication (Auth Profile UserName and Password will be shared by third party tool ?) 

 

org.mozilla.javascript.JavaScriptException: com.glide.ecc.ECCResponseTimeoutException: No response for ECC message request with sysid=*** after waiting for 300 seconds in ECC Queue

 

Thanks in advance.

1 ACCEPTED SOLUTION

Viraj Hudlikar
Giga Sage

Hello @naveenreddy0871 

 

I believe you're encountering a timeout issue with your REST API call. The ECCResponseTimeoutException indicates that the system didn't receive a response within the specified time frame.

 

-> You can increase the timeout for your REST API call. In ServiceNow, you can set the glide.http.outbound.max_timeout property to a higher value. This property controls the maximum timeout for outbound HTTP requests. You can also use the waitForResponse() method to set a custom timeout. Check this LINK

-> Ensure that the Basic authentication credentials (username and password) provided by the third-party tool are correct and properly configured in your authentication profile.

-> Make sure that the MID Server you are using is up and running. Sometimes, issues with the MID Server can cause timeouts.

-> Check if the endpoint you are calling is responding slowly. You can test the endpoint using tools like Postman to see if it responds within the expected time frame.

-> Ensure there are no network issues or firewalls blocking the communication between your instance and the endpoint.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

9 REPLIES 9

Hi @Viraj Hudlikar ,

 

I have a Data Source - Type (Custom Load By Script )

 

While I am clicking Load All Records on the Data Source and if click on robust transform on the loaded data, then data is getting updated correctly .

naveenreddy0871_1-1739969115055.png

 

If i execute Scheduled Data Import on the data source then only I am getting this error.

 

naveenreddy0871_2-1739969172176.png

 

 

@naveenreddy0871 

was this working fine earlier?

The error clearly says it got timed out and no response came from that API

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @naveenreddy0871 

 

See if this helps and same I have mentioned earlier.

Solved: How can I avoid the "No response for ECC message r... - ServiceNow Community

 

I would suggest to check this from Postman tool and see if you are getting response or not.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

 

Hi , 

But the Same script is working fine when i am doing Test load 20 Records or Load all records , its failing only when i am executing Scheduled data import on the Data Source.

 

Error executing script : org.mozilla.javascript.JavaScriptException: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

 

Thanks 
Naveen Reddy

@naveenreddy0871 

 

Since this is a custom load by script, which file you are attaching to the data source to load the data?