Error when validating the Fastly credentials

Adobe Commerce displays an error when validating Fastly credentials or reports a Token expired message during credential verification. The issue also occurs when you need to rotate a Fastly API token for security purposes. Verify the Fastly service ID and API token, check the token status, and replace expired credentials when necessary. To resolve the issue, verify credentials and replace expired API tokens.

Description description

Environment

  • Adobe Commerce (all deployment methods)
  • Fastly

Issue/Symptoms

  • An error occurs when validating Fastly credentials.
  • A Fastly API token appears compromised after being shared in a support ticket or public forum.
  • Credential validation returns a Token expired error.

Resolution resolution

Follow these steps to resolve the issue:

  1. Verify that you have the correct Fastly service ID and API token, then revalidate the credentials. For detailed instructions, see Test the Fastly credentials in the developer documentation.
  2. If credential validation fails, run the following curl command to verify the service status:
    curl -H "Fastly-Key: <API key>" https://api.fastly.com/service/<service ID>/version/active
  3. If the command returns an error similar to the following, submit an Adobe Commerce Support ticket to request a new API token. After receiving the new token, update the configuration in the environment.
    {"msg":"Token $TOKEN expired at 2021-09-28T02:03:37Z"}
    To learn how to submit a support ticket, see Adobe Commerce Help Center User Guide > Support Tickets. Note: Never share passwords or valid API tokens in a support ticket. Adobe Commerce Support has access to the token information and doesn’t require it in the ticket.
  4. If the command doesn’t return a token expiration error, verify that you are running the latest Fastly extension version. If you use a version earlier than 1.2.203, select Save Config before testing the credentials.

Related reading

recommendation-more-help
experience-cloud-kcs-help-kbarticles