Jump to content

Sage Accounting API is outputting HTML as an error code


 Share

Recommended Posts

Hi there,

I've had this issue a few times, but I normally just re-run the code on another day and it ends up working. However, it is becoming a bit more of a problem now. But I'm getting responses that contain HTML. The HTML renders a page that states looks like this:

Umm... something went wrong

There seems to have been a slight problem.

Bad gateway

The web server reported a bad gateway error.

  • Ray ID: <Ray ID>
  • Your IP address: <IP Address>
  • Error reference number: 502
  • Cloudflare Location: <Location>

I have no idea why this is being returned from an API request. Is this due to too many requests being made? But it is causing issues with error handling as the logs become massive because the HTML code is long that is sent back from the API request. Any idea what could be the problem here?

Thanks

Link to comment
Share on other sites

Hi,

Thank you for your post. Can you provide the request you're sending including the body and the full response please.

The response looks to be from AWS rather than our API. We'll need to know the AWS request_id in the response to raise a service ticket with them. 

Thanks

Mark

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...