Skip to main content
AI agents are now live in Website Scanner! Enter your URL and fix website issues 3x faster with AI. Explore now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Error - Incorrect project token

Learn how to fix errors related to incorrect project token in Percy

The incorrect project token error occurs when the project token used does not match the Percy project or command being used.

How to fix it

Check if you are using the right token for the Percy project you are working with. Here’s how to identify and correct common issues:

Scenario 1: Using a Percy Web token with Percy with Automate or App Percy

  • If you are using a token from a Percy Web project web_<token_sha> but trying to run tests with Percy with Automate or App Percy, you will see this error.

What to do:

Use a token from a compatible project:

  • Percy with Automate tokens: auto_<token_sha>
  • App Percy tokens: app_<token_sha>

Scenario 2: Using the Percy snapshot command with Automate or App Percy

  • If you are running the percy snapshot command with an Automate or App Percy project token, it will not work since this command works only for Percy Web.

What to do:

  • Use the percy screenshot command for Automate or App Percy.
  • Make sure the token prefix matches the product, auto_ for Automate, app_ for App Percy.

Need help finding the correct token? Go to your project settings in Percy and copy the token that matches the project you are using.


Need more support? Contact BrowserStack.

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle