CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

adobe/adobe-for-developers

Search the developer.adobe.com docs. Manage Adobe Developer Console projects, workspaces, APIs, and credentials. Create and test I/O Events registrations and subscriber defined filters. Set up, create, deploy, and troubleshoot App Builder apps.

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

High

Do not use without reviewing

Overview
Quality
Evals
Security
Files

playbook.mdskills/app-builder-troubleshoot/references/

Troubleshooting playbook

Match the evidence (outcome, error text, log lines) to a row. Say how sure you are, and name the evidence. Never present a guess as fact.

What the outcomes mean

OutcomeMeaning
successThe action ran and returned normally.
http 4xx/5xxThe action returned an HTTP error. Shown as http 500 when the action returned it as a normal result (Runtime counts the run as successful), or http 500 (app error) when it returned { error: … }.
app errorThe action threw an error or returned { error }. Usually a bug or bad input.
dev errorThe action couldn't start or crashed, for example a syntax error, a missing module or running out of memory.
timeoutThe action ran longer than allowed. Web actions get 60 seconds at most.
sys errorA problem on Adobe's side, not in the developer's code.
cold / warmWhether Runtime had to start a new container first. Cold starts add some time.

Symptoms

EvidenceLikely causeHow to confirmFix (with consent)
401, cannot authorize request, reason: missing authorization header or … x-gw-ims-org-id headerThe UI isn't sending the user's token and org with the call. A common newcomer cause is opening the app at https://localhost:9080 on its own instead of inside the Adobe product, so there's no signed-in user or orgchecked lists a __secured_<action> entry (the action is secured), and the UI calls actionWebInvoke without those headers, or the app was opened standaloneOpen the app through the product's preview link. Send authorization: Bearer <token> and x-gw-ims-org-id: <org> (see the create-app skill's references/app-patterns.md)
401 with request is invalid, reason: unauthorized. Please verify your organization ID… on a deployed secured actionThe token is from another org or environment, has expired, or the user lacks access to the workspace's product profilesThe row is the <pkg>/<action> sign-in check, with no matching __secured_<action> rowReload the page inside the Adobe product to get a fresh token, and open the app in the same org. If it persists, an admin checks the user's product access in Admin Console
400, missing header(s) or missing parameter(s)The generated input check found a required header or parameter missingThe error text names itSend it from the UI, or remove the requirement if the action doesn't need it
http 500, logs mention API_ENDPOINT, ERR_INVALID_URL, Only absolute URLs are supported, fetch failed or Invalid URLThe generated generic action still calls an empty example endpointThe action's code fetches params.API_ENDPOINTReplace the example code with the real logic
timeout (error: The action exceeded its time limits of <n> milliseconds)The action ran longer than its limitThe duration is close to the limit. In the browser the call failed with 400 Response is not valid 'message/http'Make the work faster, raise limits.timeout (web calls allow at most 60 s), or move slow work to a non-web action invoked asynchronously
The browser shows 400 {"error":"Response is not valid 'message/http'."}The action threw an error or timed out, so Runtime had no HTTP response to returnA matching app error or timeout row; its error text names the cause (for example TypeError: Invalid URL)Fix the cause shown in the row. Wrap risky code in try/catch and return errorResponse(...)
Logs show 403 or 401 from an Adobe API (not from the app itself)The API isn't added to this workspace, or its product profile doesn't allow the operationFor the linked workspace: get_credentials, then get_credential_services for each credential. Is the API there, with a product profile?Add the API to this workspace with the dev-console-subscribe-api skill. Each workspace needs its own
Cannot find module '…'A dependency is missing from package.json, or it was added after the last deployThe module name in the errornpm install <module>, then redeploy
memory, exceeded, killedThe action ran out of memory (256 MB by default)Large payloads or files in the logsProcess less data at once, or set limits: { memory: 512 } on the action (up to 4096)
429, Too Many RequestsA rate limit was hit (per namespace, per minute)Many runs in a short windowRetry with backoff. Reduce how often the UI calls the action
The requested resource does not existThe action isn't deployed in this workspaceaio rt action list <package> doesn't list itDeploy (the app-builder-deploy skill)
sys errorAn Adobe platform issueRepeats across different actionsRetry later. Check https://status.adobe.com. Contact Adobe support with the activation id
The browser shows Failed to fetch or a CORS error, and no run is foundThe call never reached the action: wrong URL, local certificate not accepted, or not deployedconfig.json key used, network tabOpen the local URL once and accept the certificate, use the "<ext-folder>/<action>" key, and deploy if needed
Unknown error text––Call search_adobe_docs with the exact (redacted) error text

When nothing is found

Say which of these may apply. Don't conclude that nothing failed.

  • Successful web runs aren't stored. I/O Runtime keeps failed runs, but drops successful ones from web calls. That includes an action that returns an HTTP error such as { statusCode: 500 }: the browser shows 500, but Runtime counts the run as successful, so it may not be stored. To capture every run while testing, call the action with the header X-OW-EXTRA-LOGGING: on (development only, limited to 600 calls a minute). Alternatively, return errors as { error: { statusCode, body } }, as the generated errorResponse helper does.
  • Activations are kept for 7 days.
  • The time window, the action name, or the workspace is different from where the problem happened. The script reads the workspace the folder is linked to.
  • The problem happened while running locally with aio app dev. Local runs aren't recorded in Runtime, so their errors are in the aio app dev output.
  • Logs are forwarded (no log lines returned with a log destination other than adobe_io_runtime): the logs are in that destination (for example Splunk or Azure Log Analytics). The script reads only the destination name. Don't run aio app config get log-forwarding yourself, because its settings can contain credentials.

.mcp.json

README.md

tile.json