Debugging the http "502 Bad Gateway error"

Hi
Under a load testing scenario, we are observing a "502 Bad gateway" error in the Trafaek access log.we are using rest-apis over http to commuincate between different components, with Traefik as the reverse proxy.
I am not able to figure out how to debug this
I have some questions around this

  1. Would this error mean, Traefik actually sent the request to its request to the required destination and got back an error from that server ?

  2. How can i exactly know the request forwaredd by Traefik. If there a way to debug / trace inbound and output http requests to Traefik
    any help is appreciated

Best Regards
Ani

Did you tried the steps described here : 502 Bad Gateway (SOLVED) - #4 by dduportal ?