Solved

API Timeout

  • 11 October 2023
  • 3 replies
  • 65 views

Unable to find a resolution to this yet, but trying to run an API call for service records and I’m being hit with a timeout on anything over about 25 records. The below response came back after only 51 seconds.

 

HTTP error occurred: 504 Server Error: Gateway Time-out for url: https://mycompany.sysaidit.com/api/v1/sr/?limit=200

 

Can I extend this timeout somewhere to allow it to fetch bigger batches?

icon

Best answer by Anonymous 25 October 2023, 10:14

View original

3 replies

Userlevel 1
Badge +1

Hi,

Please make sure to check the SysAid REST API Guide.

I’ve read through the SysAid guide a few times and while I can see sections in there around counting the number of sr’s and then applying an offset to potentially return batches in a loop - that doesn’t answer my question about increasing the timeout on the API connection to make the batches larger?

 

Am i missing / misunderstanding some of the guide that addresses what I’m trying to achieve?

 

Thanks

Hi @shadow229 
By using this request, you get all the information. If you don’t need everything, you can create a view in Service Desk, filter the view according to your needs and then use API to get that view.

Here’s the example how to pull the list: https://documentation.sysaid.com/docs/rest-api-guide?highlight=Get%20Service%20Request%20List

Hope it helps!

Reply