Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your Record Key is invalid - misleading error message #1449

Closed
jennifer-shehane opened this Issue Mar 12, 2018 · 2 comments

Comments

1 participant
@jennifer-shehane
Copy link
Member

jennifer-shehane commented Mar 12, 2018

Current behavior:

I accidentally overwrote the projectId of 1 of my projects with the projectId of another project. So, when my CI ran, it printed this message.

We failed trying to authenticate this project.

Your Record Key is invalid: f730a...c51e5

It may have been recently revoked by you or another user.

Please log into the Dashboard to see the updated token.

https://on.cypress.io/dashboard/projects/{my_project_id_was_here}

Desired behavior:

This error is a bit too opinionated about the exact cause. The record key wasn't the issue, it was just that Cypress was checking the record key against the wrong projectId.

Maybe this could be reworded as:

Your record key (f730a...c51e5) is not valid with this project (7zj8sl)

Also to say:
Please log into the Dashboard to see the valid record keys.

How to reproduce:

Set the projectId of 1 project to be the projectId of another project.

  • Cypress Version: 2.1.0
@cypress-bot

This comment has been minimized.

Copy link

cypress-bot bot commented Mar 1, 2019

The code for this is done in cypress-io/cypress#3628, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

flotwig added a commit that referenced this issue Mar 1, 2019

@cypress-bot

This comment has been minimized.

Copy link

cypress-bot bot commented Mar 15, 2019

Released in 3.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.