Skip to main content
Participant
January 31, 2023
Question

400 Error when attempting to convert word files to PDF

  • January 31, 2023
  • 5 replies
  • 3177 views

Using the NodeJS sdk we keep getting 400 errors on files that previously worked to convert.

 

2023-01-31T08:43:16.574:[INFO]: All validations successfully done. Beginning PDF conversion
ServiceApiError:
    at rejectWithServiceApiError (/Users/casper/Projects/proj/backend/node_modules/@adobe/pdfservices-node-sdk/src/internal/http/http-client.js:31:17)
    at handleJsonResponse (/Users/casper/Projects/proj/backend/node_modules/@adobe/pdfservices-node-sdk/src/internal/http/http-client.js:55:3)
    at handleErrorResponse (/Users/casper/Projects/proj/backend/node_modules/@adobe/pdfservices-node-sdk/src/internal/http/http-client.js:117:2)
    at onEnd (/Users/casper/Projects/proj/backend/node_modules/@adobe/pdfservices-node-sdk/src/internal/http/http-client.js:176:3)
    at IncomingMessage.<anonymous> (/Users/casper/Projects/proj/backend/node_modules/@adobe/pdfservices-node-sdk/src/internal/http/http-client.js:216:5)
    at /Users/casper/Projects/proj/backend/node_modules/@opentelemetry/context-async-hooks/src/AbstractAsyncHooksContextManager.ts:74:49
    at AsyncLocalStorage.run (node:async_hooks:311:14)
    at AsyncLocalStorageContextManager.with (/Users/casper/Projects/proj/backend/node_modules/@opentelemetry/context-async-hooks/src/AsyncLocalStorageContextManager.ts:40:36)
    at IncomingMessage.contextWrapper (/Users/casper/Projects/proj/backend/node_modules/@opentelemetry/context-async-hooks/src/AbstractAsyncHooksContextManager.ts:74:26)
    at IncomingMessage.emit (node:events:532:35) {
  requestTrackingId: undefined,
  statusCode: 400,
  errorCode: 'UNKNOWN'
}
    This topic has been closed for replies.

    5 replies

    Participating Frequently
    April 20, 2023

    We are getting same issue all of a sudden with Node v12.x and 

    @adobe/pdfservices-node-sdk 2.1.0

    We have solution deployed in production, so updating to latest is non-starter. 

    Raymond Camden
    Community Manager
    Community Manager
    April 20, 2023

    You can't update to 2.3.0? That's a minor update, not a major one.

    Participating Frequently
    April 20, 2023

    This is not how it works. Our production site has been broken since yesterday because of this and we come to find out 12 hours later. I can't just upgrade package in production just like that regardless of whether its minor or major. Also, we are now getting 500 error code now. We were getting 400 earlier.

    Raymond Camden
    Community Manager
    Community Manager
    February 2, 2023

    Update:

    Today we released a new 2.x version of the SDK, 2.3.0. For folks who can't upgrade to 3.x, you can select this version, but we *highly* recommend migrating to 3.x as soon as possible. 2.X is EOL by September of 2023. 

    Participating Frequently
    January 31, 2023

    Anyone found the root cause of this issue? We also experienced the same behavior today. Our application is in production and can't update to the latest SDK version right away.

    Participant
    January 31, 2023

    updating the node sdk to the latest version fixed the issue (3.2.0)

    Incredible that Adobe didn't handle that better, at least returning an explicit error about client being incompatible anymore...

    Raymond Camden
    Community Manager
    Community Manager
    January 31, 2023

    By any chance do you remember which version you had before?

    Joel Geraci
    Community Expert
    Community Expert
    January 31, 2023

    I ran into that myself yesterday. Try updating to the latest SDKs. You shouldn't need to modify your code other than that.

    Participant
    January 31, 2023

    Hi, same problem here - I have a subscription bought from AWS Marketplace - was working until Jan 30 5PM GMT...