RE: Error Fetching http headers

We have an intranet with a page that retrieves sales orders from NetSuite for viewing by our customer service team. This page makes 5 SOAP calls to get all of the information of for the order. This includes the order details, notes, item tracking, etc.

We have one user that frequently gets a blank screen and, through some troubleshooting code, we can see that the requests are failing with the error “Error Fetching http headers”.  This started happening a few months ago with a different order import integration program that also uses SOAP calls and we able to mitigate that by re-instantiating the connection service just before the SOAP call as it seemed they were timing out. But that seems to not have helped with our intranet page.

Any ideas on what could be causing this or how to correct it?

Scot Beginner Asked on September 10, 2019 in SuiteTalk.
Add Comment
5 Answers

I agree that it sounds like you’re occasionally hitting concurrency limits.  That would explain the empty responses that you’re getting from time to time. I think that if you were to look at the HTTP response codes being returned, you’d see something along the lines of a 429 response, indicating that you’re making too many requests in a short period of time.

You mentioned having to make five SOAP / SuiteTalk requests in order to gather all of the data needed by your customer service team. As alien4u suggested, if you were  develop a RESTlet, you might be able to make a single call to NetSuite to get all of the data that you need. That should help to eliminate or at least reduce the frequency of the concurrency issue. I suspect that you would see better overall performance as well.

Good luck!

Rookie Answered on September 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.