Scheduled Maintenance: Archer Community Temporary Downtime. Learn More here.
2020-10-21 10:15 AM
Dear Team,
I am access records from Archer using content API and many times Archer API returns 500 ( data not found) for the same record, but after some time the same record id, Url, and Session token returns record data.
Has anyone faced any such error or is it a known error or do we need to tweak any Archer setting so the system can handle seepy API calls?
Thank you in advance!
2020-10-21 10:32 AM
HTTP 500 is not an indication that data was not found, but rather it is telling you than an unhandled exception occurred. When this happens, check the Archer log and the system event log to see if you can find a stack trace associated with the exception.
2020-10-21 10:45 AM
Thank you for quick reply. Unfortunately the response body shows below error message and nothing more
2020-10-21 10:58 AM
That HTTP response code is typically an indication of an unhandled .NET exception. There should be a stack trace in either the Archer log file or the System Event Log. Do you see anything in either of those locations related to the error?
2020-10-21 11:18 AM
The HTTP 500 error code can occur with content api for several reasons. To help troubleshoot further, please complete the following:
2020-10-23 07:04 AM
Dear All,
Thank you for your quick response. please find the below details
Now checking with our Internal Archer team if there is any other error in Archer logs or System event logs
Thank you.
2020-10-26 09:10 AM
Dear All,
After checking it further, our Archer team confirmed that IIS service in the Archer server is consuming too many processes and after sometime IIS server needs to restart.
So with the current investigation, the overall scenario is
-> Program is trying to extract all related records from all related applications (8 in total) for Business Hierarchy application.
-> To perform above, it is triggering 600+ content API calls in one minute ( example shown in the above post).
-> This results in Error 500 from Archer and when I triggered each failed call manually Archer returned the proper result.
-> When I changed the logic to extract only the latest record(1 record) from all related applications of business Hierarchy Application, it reduced the total Archer calls to 200 and Archer returned all data without any error.
Is there any configuration which we should change to increase or enhance Archer API performance?
Thank you.
2020-10-26 09:51 AM
Are the 600+ API calls being made concurrently, or are they sequential?
2020-10-26 10:06 AM
Currently all calls are triggered sequentially using single nodeJS thread but it is not waiting for completion of previous calls.
2020-10-26 10:16 AM
So it's effectively asynchronous? You might be able to solve the problem if you force synchronous executions by waiting on the return.