tag:support.appharbor.com,2010-11-23:/discussions/problems/98030-bad-gateway-for-some-requestsAppHarbor: Discussion 2018-09-02T16:39:30Ztag:support.appharbor.com,2010-11-23:Comment/459560952018-08-24T20:23:47Z2018-08-24T20:23:47ZBad gateway for some requests<div><p>Hi,</p>
<p>This can sometimes happen if the web worker process terminates unexpectedly (which may be tricky to debug), but is often caused by exceptions that occur outside the request context (e.g. in a "background"/async thread). Do you perform any such processing on a regular basis? Also, the issue appears to be quite intermittent, and I'm curious if this started happening recently and could be related to recent changes to your application's code?</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/459560952018-08-26T19:35:00Z2018-08-26T19:35:00ZBad gateway for some requests<div><p>akqbridge is a gaming site. This case (502) is related to concrete game for concrete user - looks like a bug in application. My problem is that locally app with all prod settings has no errors. Only on appharbor I am catching this error and I can reproduce this case. Are there any server logs related directly to IIS, not to nginx?</p></div>antonputautag:support.appharbor.com,2010-11-23:Comment/459560952018-08-31T22:21:00Z2018-08-31T22:21:00ZBad gateway for some requests<div><p>I can confirm I have no errors on serverside. I have no error entries catched by elmah (http module that tracks unhandled errors) when 502 occurs.</p></div>antonputautag:support.appharbor.com,2010-11-23:Comment/459560952018-09-02T16:39:27Z2018-09-02T16:39:27ZBad gateway for some requests<div><p>Hi,</p>
<p>Sorry about the slow response -- I noticed that more errors that might very well be causing/related to the issues you're experiencing here are being logged in the application's Errors page. Did you perhaps disable some logic in your app that might've handled the exceptions?</p>
<p>Also, if you're able to reproduce it locally I suspect it might also be more straightforward to fix the issue? Of course depends on what type of issue we're dealing with here but I'm curious if you have more details on that?</p>
<p>Best,<br>
Rune</p></div>rune