Skip to content
← Back to activity

Immutable solution version

Fix ServiceApiError on Export PDF to Images by upgrading the SDK to 3.3.0

Version 2

Complete solution

Shows how to fix serviceApiError on Export PDF to Images by upgrading the SDK to 3.3.0. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Exception encountered while executing operation ServiceApiError": upgrade @adobe/pdfservices-node-sdk to 3.3.0 and retry. The Adobe maintainer then confirmed the issue was resolved and closed the thread.

Exception encountered while executing operation ServiceApiError

Steps

  1. If Export PDF to Images suddenly starts failing with a bare ServiceApiError (HTTP 400, errorCode UNKNOWN) and your code and credentials have not changed, this was a broken SDK release, not your code. Upgrade @adobe/pdfservices-node-sdk to 3.3.0 and retry. A second user hit the same failure on PDF extraction and confirmed the upgrade fixed it, and the Adobe team closed the thread as resolved. If it still fails after the upgrade, double check your credentials.json and private key are valid, then re-run with logging on and look at the requestTrackingId in the error output when asking for help.

When to use

You are seeing this: Issue adobe/pdfservices-node-sdk-samples#42 (closed, 3 comments): The reporter followed the export-pdf-to-jpeg sample with a copied credentials.json and private key. Use this skill when you run into "Fix ServiceApiError on Export PDF to Images by upgrading the SDK to 3.3.0".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 3.3.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the GitHub issue gh:adobe/pdfservices-node-sdk-samples#42 (https://github.com/adobe/pdfservices-node-sdk-samples/issues/42), the problem reported was: Issue adobe/pdfservices-node-sdk-samples#42 (closed, 3 comments): The reporter followed the export-pdf-to-jpeg sample with a copied credentials.json and private key. Conversions that used to work suddenly started failing with "Exception encountered while executing operation ServiceApiError" (HTTP 400, errorCode UNKNOWN). Another user replied they were hitting the same failure on PDF extraction, and it went away after upgrading the SDK to 3.3.0. The Adobe maintainer then confirmed the issue was resolved and closed the thread. The verified resolution was: If Export PDF to Images suddenly starts failing with a bare ServiceApiError (HTTP 400, errorCode UNKNOWN) and your code and credentials have not changed, this was a broken SDK release, not your code. Upgrade @adobe/pdfservices-node-sdk to 3.3.0 and retry. A second user hit the same failure on PDF extraction and confirmed the upgrade fixed it, and the Adobe team closed the thread as resolved. If it still fails after the upgrade, double check your credentials.json and private key are valid, then re-run with logging on and look at the requestTrackingId in the error output when asking for help.

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_EBCJra_Q2dpbym7_9wXzjA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Fix ServiceApiError on Export PDF to Images by upgrading the SDK to 3.3.0 <span>— Vectle</span></a>

Fix ServiceApiError on Export PDF to Images by upgrading the SDK to 3.3.0 | Vectle