TroubleshootingTroubleshoot Hosting

Troubleshoot Hosting

View as Markdown

Diagnose and resolve common errors when deploying and operating apps on GoDaddy's hosting platform.

Overview

This page covers common failures when using the Hosting API, with causes and steps to resolve them. Go to Read logs for build and application output when diagnosing runtime failures.

App creation job stuck in pending

Symptom: GET /app-operations/{operationId} returns status: "PENDING" for more than two minutes.

Cause: Upstream provisioning delay or a transient platform error.

Resolution:

  • Wait two minutes. Most create jobs complete within 30–60 seconds.
  • If still pending after 2 minutes, treat the job as failed.
  • Retry POST /apps with a new app name. Don't reuse the stuck operation id.

Source import job failed

Symptom: GET /apps/{appId}/imports/{importId} returns status: "FAILED".

Cause: A malformed zip or build failure causes most import failures.

Resolution:

  • Confirm the zip root contains a package.json. The build system must find it at the top level.
  • Confirm the zip doesn't contain a nested project root (e.g., a folder wrapping all the files).
  • Verify the app meets all deployment requirements. Go to Node.js app requirements for the full list.
  • After fixing the zip, upload again with POST /apps/{appId}/imports.

401 Unauthorized

Symptom: Any request returns 401 Unauthorized.

Cause: The token is expired, revoked, or missing a required scope.

Resolution:

  1. Check the token expiry date in the Personal Access Tokens portal.
  2. Verify the token includes the scope the operation requires. Go to Hosting core concepts for the full scopes table.
  3. Note: GET /apps/{appId}/secrets requires hosting.secret:read.
  4. Create a new token with the correct scopes if the original has expired or lacked a scope.

429 Too Many Requests

Symptom: Requests return 429 Too Many Requests.

Cause: Rate limit exceeded. Limits are enforced per client IP and vary by operation (10–120 req/min).

Resolution:

  • Implement exponential backoff. Start with a 1-second delay and double on each retry, up to a maximum of 30 seconds.
  • Avoid tight polling loops — use 2–5 second intervals when polling job status.
  • Go to Rate limits for general guidance.

App not running after publish

Symptom: GET /apps/{appId}/status shows the publish variant in a non-running state after POST /apps/{appId}/deployments.

Cause: The app might have a startup error, or the deployment is still rolling out.

Resolution:

  1. Allow up to 30 seconds for the status to flip to running after a publish. Poll with a five second interval.

  2. If the status remains non-running, fetch application logs to check for startup errors.

  3. Fix the error, upload a corrected zip, and publish again. Go to Deploy your Node.js app for the full deploy flow.

  4. Fetch application logs:

    curl -s "$BASE_URL/v1/hosting/apps/$APP_ID/logs?variant=PUBLISH" \
      -H "Authorization: Bearer $GODADDY_PAT" | jq .

WordPress site errors

WordPress sites (appType=MHWP) return the error envelope {name, correlationId, message, details}. The machine-readable code is details[].issue. Branch on it, not on name or message. Quote correlationId (also sent as the X-Request-Id header) when you contact support.

The following table lists the errors a WordPress site request can return and how to resolve each:

Statusdetails[].issueReturned byCauseResolution
400VALIDATION_FAILEDAnyThe body, a query parameter, or the Idempotency-Key header is malformed.Read details[].field and details[].location, fix the value, and retry.
401(empty body)AnyThe PAT is expired or revoked, or it doesn't have the scope the operation needs. A PAT without the scope can get an empty 401 instead of 403.Check the scope for the operation. A missing scope can return 401 or 403, so handle both. Create a new PAT if needed.
401OAUTH_REQUIRED, INVALID_TOKENAnyNo bearer token, or the token is invalid.Send Authorization: Bearer $GODADDY_PAT with a current PAT.
403INSUFFICIENT_SCOPE, ACCESS_DENIEDAnyThe token doesn't have the scope the operation needs, or the account can't use the API. For a missing scope the body can be empty.Add the scope: create a new PAT with it, or sign in to gddy again and approve it. Or use an account with API access.
403WORDPRESS_NOT_ENABLEDPOST /v1/hosting/appsWordPress sites aren't enabled for this account.Contact GoDaddy support. Don't retry.
403SUBSCRIPTION_INACTIVEPOST /v1/hosting/apps, publishThe Airo App Builder subscription isn't active.Reactivate the subscription, then retry. Unpublish still works.
404APP_NOT_FOUND, OPERATION_NOT_FOUNDAnyThe id doesn't exist or doesn't belong to your account. A deleted site returns this after the deletion finishes.Check the id. List sites with GET /v1/hosting/apps?appType=MHWP.
409CREATE_IN_PROGRESSPOST /v1/hosting/appsAnother create on the account is still running.Wait a few seconds and retry.
409IDEMPOTENCY_IN_PROGRESSPOST /v1/hosting/appsA request with the same Idempotency-Key is still running.Wait, then retry with the same key to get its operation.
409MULTIPLE_SYSTEMS_AMBIGUOUSPOST /v1/hosting/appsThe account has more than one system, so the target is ambiguous.Contact GoDaddy support.
409PUBLISH_STATE_CHANGE_IN_PROGRESSPUT .../publish-stateA change in the other direction is still running, or another publish-state request on the same subscription is being accepted.If a change is running, poll its operation, then retry. Otherwise retry after a few seconds.
422SUBSCRIPTION_REQUIREDPOST /v1/hosting/appsThe account has no Airo App Builder subscription.Buy an Airo App Builder plan, then retry.
422APP_LIMIT_EXCEEDEDPOST /v1/hosting/appsThe subscription has no free app slot.Delete a site you no longer need, then retry.
422SYSTEM_INCONSISTENTPOST /v1/hosting/appsThe account isn't ready to add a site.Contact GoDaddy support.
422IDEMPOTENCY_KEY_MISMATCHPOST /v1/hosting/appsYou reused an Idempotency-Key with a different body.Send a new UUID for a different request.
422PUBLISH_LIMIT_EXCEEDEDPublishThe plan allows no more published sites. The free plan allows none.Unpublish another site or upgrade the plan.
422ROOT_PATH_NOT_APPLICABLEPATCH /v1/hosting/apps/{appId}WordPress sites have a fixed document root.Change /name only.
422APP_DELETINGPATCH, PUT .../publish-stateThe site is being deleted.Stop sending writes for this site.
429(empty body)AnyThe rate limit is reached.Wait the number of seconds in Retry-After if it's present, otherwise in RateLimit-Reset, then retry.
500INTERNAL_ERRORAnyAn unexpected server error.Retry with backoff. Contact support with the correlationId if it persists.
501NOT_APPLICABLEDeployments, secrets, logs, domains, and othersThe operation doesn't apply to WordPress sites, or publish state was called for a Node.js app.Use the WordPress operations. The list follows this table.
503UPSTREAM_UNAVAILABLEAnyA dependent service is unavailable, or another write holds the site's lock (Retry-After: 5).Retry after the Retry-After value, or with backoff when it's absent.

Operations that return 501

Operations that don't apply to a product return 501 Not Implemented with details[].issue NOT_APPLICABLE. For WordPress sites, these are:

  • deployments: GET and POST /v1/hosting/apps/{appId}/deployments, GET /v1/hosting/apps/{appId}/deployments/{deploymentId}, and its /logs
  • restarts: POST /v1/hosting/apps/{appId}/restarts
  • source imports: POST /v1/hosting/apps/{appId}/imports and GET /v1/hosting/apps/{appId}/imports/{importId}
  • secrets: GET and PATCH /v1/hosting/apps/{appId}/secrets
  • logs: GET /v1/hosting/apps/{appId}/logs
  • domains: GET and POST /v1/hosting/apps/{appId}/domains, and GET and DELETE /v1/hosting/apps/{appId}/domains/{domainId}
  • subscriptions: GET and PUT /v1/hosting/apps/{appId}/subscription, and GET /v1/hosting/subscriptions?hostingProduct=MANAGED_WORDPRESS

For a Node.js app, both publish-state operations return 501 NOT_APPLICABLE.

WordPress site rate limits

The Hosting API limits POST /v1/hosting/apps?appType=MHWP and PUT /v1/hosting/apps/{appId}/publish-state to 10 requests per minute and 100 per hour for each customer. Other WordPress site requests are limited to 600 per minute for each customer. A 429 can have an empty body and no Retry-After header, so wait the number of seconds in RateLimit-Reset before you retry. If a 429 carries Retry-After, wait that long instead.

WordPress site creation failed

Symptom: GET /v1/hosting/app-operations/{operationId} returns status: "FAILED" for a CREATE_APP operation.

Cause: error.details[].issue is CAPACITY_UNAVAILABLE when no capacity was free, or APP_CREATION_FAILED for any other failure. The API didn't create a site.

Resolution:

  • For CAPACITY_UNAVAILABLE, retry POST /v1/hosting/apps?appType=MHWP later with a new Idempotency-Key.
  • For APP_CREATION_FAILED, retry once. Contact GoDaddy support with the correlationId if it fails again.

Publish or unpublish failed

Symptom: GET /v1/hosting/app-operations/{operationId} returns status: "FAILED" for a SET_PUBLISH_STATE operation.

Cause: error.details[].issue is PUBLISH_LIMIT_EXCEEDED when the plan ran out of published-site slots during the change, or PUBLISH_STATE_CHANGE_FAILED for any other failure. The site keeps its previous state.

Resolution:

  • For PUBLISH_LIMIT_EXCEEDED, unpublish another site or upgrade the plan, then retry the PUT.
  • For PUBLISH_STATE_CHANGE_FAILED, retry the PUT. Contact GoDaddy support with the correlationId if it fails again.

Agent & Automation Notes

Scopeshosting.application:read, hosting.log:read
Rate limit60 req/min per credential
IdempotentYes
DestructiveNo
On failureAll diagnostic calls on this page are read-only and safe to retry.

Last updated on

How is this guide?

On this page