Category: Forms and APIs

HTTP 502 Bad Gateway after changing service address

Read this guide in Polish

Proxy works, but the application server does not return the correct upstream response.

How to identify the source of the problem

Check the upstream host and port configuration and the availability of the application process.

Save method, status, headers and anonymized body requests and answers.

Repair steps

Repair the routing and health check service, providing encryption or trusted connection network.

How to Test Solution

Proxy returns the correct status and body, and the upstream failure remains clearly logged.

Security and restrictions

Do not disable authorization or validation of webhook signature for status 200. Wash the tokens in the logs.