Skip to main content
gavinh
May 24, 2021
Question

502 Bad Gateway

  • May 24, 2021
  • 4 replies
  • 0 views

Has anyone received a 502 Bad Gateway response from calling a POST REST service via an integration and if so what was the cause and how did you fix the issue?

We have an integration that calls an internal service to send emails from a corporate email account that can include attached documents. It works fine with an attachment of around 1.5MB but returns a 502 Bad Gateway response with an attachment of around 2.5MB. The service itself is tested with attachments up to 10MB. When we get the 502 Bad Gateway response there is no record of the request ever reaching the service endpoint (it's not in the service logs).

The response body shown in Appian is:

<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> </body> </html>
The integration is using the Automatically Convert CDT to JSON option to convert the attached documents to Base64
Any advice or suggestions to help identify and/or fix the issue would be much appreciated.

    4 replies

    stefanhelzle0001
    Brainy
    May 24, 2021

    AFAIK there is nothing you could do in Appian. If you tested the service itself, could it be that there is something in-between Appian and the service which you skip when testing directly? I think of a proxy, reverse-proxy or API management.

    gavinh
    gavinhAuthor
    May 25, 2021

    Yes that's where I think the issues is, somewhere in the connectivity between Appian and the service, so it could be the VPN, firewall, load balancer, etc. I'm just not sure how we trace that to identify where the bottleneck is.

    stefanhelzle0001
    Brainy
    May 25, 2021

    The only way is to try to find out which hops are in-between and check logs&config on each.