We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

An error occurs when the Scripted REST API is executed in parallel.

Ohki_Yamamoto
Tera Guru

We have built a scripted REST API to import data by having other systems call the API.

 

This REST API is called every minute.
As a result, the second API call is made before the first call has completed.

 

Currently, when the second API call is made, the following error occurs:

-----------------

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host'))

-----------------

 

Do you know why the first and second REST API calls cannot be processed in parallel?

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Ohki_Yamamoto 

could you share the complete script for Scripted REST API?

that would help to understand and debug

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