0

I am trying to use the CloudConvert API to convert a PDF file to a Word document using JavaScript, but I am getting a 401 error when making the request. I have checked that my API key is correct and has the necessary scope, but I am still getting the error. What could be causing this issue and how can I fix it?

I tried to use the provided code to convert a PDF file to a Word document using the CloudConvert API and JavaScript. I expected the code to send a request to the CloudConvert API with the base64-encoded PDF file and to receive a response with a download link for the converted Word document. However, I received a 401 error when making the request, indicating that the request was unauthorized. I checked that my API key was correct and had the necessary scope, but the error persisted. I also tried troubleshooting by logging the API response and any error messages to the console, but this did not provide any additional information about the issue.

  • Does [this help](https://stackoverflow.com/questions/64267731/cloudconvert-invalid-signature-error-when-using-request-promise-to-upload-via) in any way? – FiddlingAway Dec 29 '22 at 22:56

0 Answers0