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 snapshotcommand 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 screenshotcommand 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
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!