Skip to main content
Solved

API Timeout

  • October 11, 2023
  • 3 replies
  • 121 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?

Best answer by Anonymous

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!

3 replies

iulian.olaru
SysAider
Forum|alt.badge.img+1
  • SysAider
  • 42 replies
  • October 11, 2023

Hi,

Please make sure to check the SysAid REST API Guide.


  • Author
  • New SysMate
  • 1 reply
  • October 12, 2023

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


  • 0 replies
  • Answer
  • October 25, 2023

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!