Skip to main content
Participant
Jun 24, 2022 5:42 PM UTC
Answered

Bad Gateway (Get PDF Properties)

Hello,

 

I am attempting to retrieve a PDF file from an FTP and the read the properties of the file using "Get PDF Properties", but continue to receive an error about a "BadGateway". Is there a problem with the endpoint? I am able to use other Adobe Premium features (like OCR, split, and merge), so I believe my credentials are all properly inserted.

 

Here's the raw output:

{
    "statusCode": 502,
    "headers": {
        "Transfer-Encoding": "chunked",
        "x-request-id": "ACQqBfcfst8nJe7ASbTcb6SY2pHiqXns",
        "pragma": "no-cache",
        "x-content-type-options": "nosniff",
        "strict-transport-security": "max-age=31536000; includeSubdomains",
        "x-robots-tag": "noindex,nofollow",
        "vary": "accept-encoding",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "x-ms-apihub-obo": "true",
        "Cache-Control": "no-store, must-revalidate, no-cache",
        "Date": "Fri, 24 Jun 2022 16:57:12 GMT",
        "Content-Type": "application/json",
        "Expires": "Thu, 01 Dec 1994 16:00:00 GMT",
        "Content-Length": "348"
    },
    "body": {
        "error": {
            "code": 502,
            "source": "flow-apim-msmanaged-na-eastus-01.azure-apim.net",
            "clientRequestId": "58ef556a-794b-4a29-8f9f-1a99f7acc035",
            "message": "BadGateway",
            "innerError": {
                "error": {
                    "code": "OperationException",
                    "message": "HTTP 500 Internal Server Error"
                }
            }
        }
    }
}

 

Here's the setup of the flow:

 

Thank you,

David

This topic is closed to new replies. Start a new post to keep the conversation going.
David24910445a2ylCorrect answer
Participant
Jun 29, 2022 8:50 PM UTC

Still unsure why it doesn't work this way, but I added a 'Linearize PDF' option before 'Get PDF Properties' and it's now working. In case it helps anyone in the future.

5 replies

Participant
Jul 20, 2022 12:26 PM UTC

Hi,

I am facing the same issue and not sure how to resolve it. Can someone please help with this?

Translate
David24910445a2ylAuthorCorrect answer
Participant
Jun 29, 2022 8:50 PM UTC

Still unsure why it doesn't work this way, but I added a 'Linearize PDF' option before 'Get PDF Properties' and it's now working. In case it helps anyone in the future.

Translate
Ben Vanderberg
Community Manager
Community Manager
Jul 14, 2022 10:52 PM UTC

Hi @David24910445a2yl ,

 

That does seem like an odd issue. Is this happening with all of your PDFs or one specific one? Would you be willing to share a copy of a problematic document? I'd love to share it with our engineering team to understand. You can DM me if that is more comfortable.

Translate
Participant
Jul 15, 2022 1:36 PM UTC

Hi Ben,

 

I thought this issue was completely fixed with the 'Linearize PDF' option I put in place, but I am now receiving the same BadGatteway error when trying to OCR the PDF further down in my flow for only specific documents. I attempted to add a 'Linearize PDF' at this point, but it did not solve the issue this time.

 

Is there an email that I can send the file to? I'd rather not upload it publicly.

Translate