Skip to main content
Participant
April 17, 2023
Question

Internal Server Error when exporting to .docx

  • April 17, 2023
  • 1 reply
  • 802 views

I am using the API to convert PDFs to .docx files. It has never had any problems.

 

However one file I have keeps on failing with a 500 internal server error during processing. I poll the "location" URL and after about a minute it returns a "failed" status. I'm not sure how to go about debugging this.

 

I can't attach the PDF file publically to this post because it contains sensitive information. I'm looking for someone in Support to reach out who I can work with.

This topic has been closed for replies.

1 reply

Participant
September 27, 2023

Hello! Did you fix it? I got the same issue. Public convertion tool work perfectly but API fails

 

Raymond Camden
Community Manager
Community Manager
September 27, 2023

When a job has a failed status, the body of the response should include some details. From the REST docs:

 

{
"status": "failed",
"error": {
"status": 500,
"code": "INTERNAL_SERVER_ERROR",
"message": "There was an error processing your request"
}
}

 

In theory, your error may be more detailed. 

Participant
September 29, 2023

Hello.

I'm using a nodejs api bindings and unfortunately it doesn't provide more info when failing

 

{
  requestTrackingId: '66744721-6b13-435b-bbcc-3142cf14d033',
  statusCode: 500,
  errorCode: 'INTERNAL_SERVER_ERROR'
}

But I put a break inside bindings and get an error message:

{
    "code": "INTERNAL_SERVER_ERROR",
    "message": "Unknown error performing transfer",
    "status": 500
}