Select to view content in your preferred language

502 - Bad Gateway Error for content/features/generate API

08-12-2020 01:13 AM
New Contributor II


Intermittently get a 502 - Bad Gateway error when using the sharing/rest/content/features/generate generate features API, have mostly had that when the network is fluctuating, thought that it might be due to the file not being uploaded / timing out.

Form Data Parameters:

publishParameters: {"name":"gridlayers shape files 10-23-2019","targetSR":{"wkid":102100,"latestWkid":3857},"maxRecordCount":50000,"enforceInputFileSizeLimit":true,"enforceOutputJsonSizeLimit":true,"generalize":true,"maxAllowableOffset":10.583354500041803,"reducePrecision":true,"numberOfDigitsAfterDecimal":0}




Any idea what cause there might be for this and if there's a way to increase the request timeout?

Thanks and Regards,

Sushant Sardeshpande

0 Kudos
1 Reply
New Contributor

The 502 (Bad Gateway) status code indicates that the server while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. The “proxy server” is a system or router that acts as a gateway between your computer and the internet.

How to fix?

Perform a hard-refresh in your browser. On Macs, this is done by pressing Cmd + Shift + R.

If you are surfing the Web and see this problem for all Web sites you try to visit, then either 1) your ISP has a major equipment failure/overload or 2) there is something wrong with your internal Internet connection e.g. your firewall is not functioning correctly. In the first case, only your ISP can help you. In the second case, you need to fix whatever it is that is preventing you reaching the Internet.

This problem is due to poor IP communication between back-end computers, possibly including the Web server at the site you are trying to visit. Before analysing this problem, you should clear your browser cache completely.

Finally, restart your computer/networking equipment. Some temporary issues with your computer and how it's connecting to your network could be causing 502 Bad gateway errors, especially if you're seeing the error on more than one website. In these cases, a restart would help.



0 Kudos