cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting 500 when I am trying to retrieve data which takes more than 60sec/1min

0 Likes
1,325

I have checked from hybris end we are not setting any timeout (I may be wrong), may be it is taking default value from app/web as we are getting same response from API GW (screenshot time 1min marked in yellow) and in postman I am calculating value for noOfDays=1500 and I am getting response over there of line 38K in 10min.

Can someone help me getting exact cause for this?

API url: https://apigw.internal.<sitename>.com/I200510/auditReports/prices?noOfDays=8 -> NOT-OK - after 1min it is stopping with error 500
url: https://apigw.internal.<sitename>.com/I200510/auditReports/prices?noOfDays=7 -> OK 37sec time to get data

api-screenshots.jpgpostman.jpg

Accepted Solutions (0)

Answers (2)

Answers (2)

alex_alvarez1
Product and Topic Expert
Product and Topic Expert
0 Likes

Looks like the Timeout is at the Proxy or the Apache level, generate a thread dump in /HAC to see if the request is still running even after you get the 500 error.

Elijah_Martinez1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Gauravsing,

Thank you for your community participation. first a warning - if you were trying to remove the company name as you did in the text you submitted here, I wanted to let you know that the name is in the image capture. You may want to blur and reupload if that is an issue.

Can you share what the API Gateway in use is? Is this SAP API Management wrapping a Hybris endpoint, or is it a Hybris direct API access call?

The reason I ask is that SAP API Management has a hard limit of 55 seconds for API calls to remain open. Please see https://help.sap.com/doc/fc5a7d8c89db4a448903df7d526b36f4/Cloud/en-US/668ddc52b4c54429a3abb37be25b57... pages 491 - 492 for timeout limits.

Regards,
Elijah

0 Likes

Hi @elijah.martinez,

Thanks for your response also thanks for letting me know about the mistake (company name) I think its ok to share unless I am sharing credentials and It is a Hybris V2 web-services API call, exposing web-services. So still It will have a limit of 55sec for API call to remain open? if yes how to get it increase to more than 55sec or any limit we can define?

I believe I have given you right input to solve my query or let me know if you need further inputs.

Awaiting for your valuable response!

Regards,
Gaurav.S

Elijah_Martinez1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Gaurav,

Thanks for your reply - it sounds like you are using Hybris onPrem, which is unrelated to SAP API Management, which I needed to verify. Unfortunately I am not well enough versed in Hybris to answer this question. To answer your other Q - the two limits are unrelated, so the document I sent to you will not have an impact in the Hybris platform.

I do not want to lead you down a wrong path so I will not try to answer - but a hint I found looking about might be found here https://launchpad.support.sap.com/#/notes/0002428496 ; it seems that there are configurable timeout settings in the Service.

Apologies I cannot go any further than this. Hopefully a Hybris expert will contribute.

Regards,
Elijah