Page 1 of 2
Timeouts from multiple endpoints
Posted: Wed Aug 23, 2023 10:20 am
by zest_eco
Hi,
We're trying to hit the following endpoints:
- "/api/v1.0/companies/{companyID}/sites/{siteID}/assets/{assetID}/testHistory/"
"/api/v1.0/companies/{companyID}/sites/{siteID}/assets/{assetID}/serviceLevels/"
and receiving timeouts.
The error is intermittent unfortunately and only returns a generic error message.
The data we're trying to retrieve is tiny, less than 2 bytes in some cases.
I can private message specific URLs if that helps.
Can you advise what steps we can take to resolve this issue?
Regards,
Matt
Re: Timeouts from multiple endpoints
Posted: Thu Aug 24, 2023 3:42 am
by Sindre
Hi Matt,
It's hard to troubleshoot timeouts but we'll have a look.
Can you send me a private message with your build details and some more info.
Are you dong a GET or POST, if you are posting can you include the POST body.
How often is this happening and what is the error message you get?
Regards
Re: Timeouts from multiple endpoints
Posted: Thu Aug 24, 2023 11:59 am
by zest_eco
Thanks, I'll send a PM with the details requested
Re: Timeouts from multiple endpoints
Posted: Thu Dec 21, 2023 2:36 pm
by Pete J Zest
Hi Sindre,
I'm responding on behalf of my dev colleagues.
We are receiving the following error on the endpoint "/api/v1.0/companies/{companyID}/sites/{siteID}/assets/{assetID}/testHistory/" as found here in the docs:
https://developer.simprogroup.com/apido ... -Histories
reason: connect ETIMEDOUT
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT
The code to call this endpoint, is the same as is used to call all other endpoints, with no issues. We have previously had intermittent time out errors, which we have handled with retry logic.
However, on this particular endpoint if we try to retry, it just runs forever and never fetches the data and ultimately returns this error again.
This is preventing us from progressing this story and other work required downstream.
Thanks,
Pete
Peter Jacques
IT Project Manager | Zest
07895 315170
Re: Timeouts from multiple endpoints
Posted: Fri Dec 22, 2023 4:26 am
by Sindre
Hi Pete,
Can you send me a private message with the build name and the data you use when trying to get test history.
Info such as sites and assets ID's. I can then test and see if we can reproduce it or see if there is something about the setup.
Regards
Re: Timeouts from multiple endpoints
Posted: Thu Feb 29, 2024 11:16 am
by Pete J Zest
Hi Sindre,
You might be surprised to hear from me again on this one. We put this User Story back in to the backlog whilst other work took priority, but it’s now becoming a focus again. I have flagged this again to a colleague to begin to look at it and the first question back is this:
'Ask him to confirm if he means the response we are getting from simpro, or by "data you use" does he mean our code?'
Can you clarify, pls?
Thanks,
Pete
Re: Timeouts from multiple endpoints
Posted: Thu Feb 29, 2024 11:45 pm
by PremMarkeli
Hi Pete,
Please share the details of API such as request url (including build name), method, body(if any) and error details.
Regards.
Re: Timeouts from multiple endpoints
Posted: Tue Mar 05, 2024 7:43 am
by Pete J Zest
Hi Prem,
Sent you a pm yesterday afternoon. I also have some excel spreadsheet data that I'd like to pass across, but I can't see how to attach any docs. Can you clarify how I can attach docs, pls?
Thanks,
Pete
Re: Timeouts from multiple endpoints
Posted: Tue Mar 05, 2024 11:35 pm
by PremMarkeli
Hi Pete,
I have alredy replied you via PM, please check your inbox.
Regards.
Re: Timeouts from multiple endpoints
Posted: Thu Mar 07, 2024 11:11 am
by Pete J Zest
Hi Prem,
I've sent the xl file via the specified email account. If you don't actively monitor that email acc yourself can you check with a colleague and confirm you have it/ can get access to it, pls?
Thanks, Pete