-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Renaming project on sentry.io breaks all builds, no documentation to fix it, wizard does not fix it #11154
Comments
Current error:
|
Hi, sorry that this was frustrating. First to unblock you: Can you try creating a new auth token in Sentry and set it for your build? We encode things inside the auth token and when renaming the project things might desync. Next, we'd like to fix the experience around this. Would you mind sharing your org slug so we can take a closer look at your setup? Thank you! |
Also, did you by any chance mean to write that you renamed your organization, and not the project? Because renaming the project should not have any effect on auth tokens. |
org slug is ferumlabs. End up just deleting everything and starting over. I spent about an hour debugging it and got no where. Things that were confusing:
The ideal state:
|
Thanks for the detailed feedback. We are having a pretty big discussion internally on how to tie any tooling not to org slug but rather an id or even more ideal the token itself. |
Any updates on this? I had a similar issue, I created a new project with the 'javascript-nextjs' template, and didn't rename it. I walked through the setup for setting up the SDK and connected it to the same project. Now, today I changed the project name (to 'ipusenpai'), and then I couldn't build in production. Tried changing auth-token, dsn, nothing worked. This is a part of the logs:
It's still making the POST request with the old project name.
The only solution I found was to rename it back to 'javascript-nextjs', and it worked. |
@martian0x80 What do you have set as |
Thank you for the tip! I didn't update the |
@martian0x80 I am absolutely certain you are not the only one running into this so no time wasted :) The next person will maybe find this thread be helpful! |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Had the same issue. It's when you rename the project. You need to rename it in nextjs config. |
If you rename the project, you'll have to run |
Just spent ~1h on this. Didn't know that teammate changed our project slug. Would be nice if you highlight it somehow both in the build error message and in the web ui when somebody changes project slug. |
I had to reinitialise the whole sentry project in NextJs to make it work.
Viktor Danyliuk ***@***.***> schrieb am Fr., 13. Sept. 2024,
00:19:
… Just spent ~1h on this. Didn't know that teammate changed our project slug.
Would be nice if you highlight it somehow both in the build error message
and in the web ui when somebody changes project slug.
—
Reply to this email directly, view it on GitHub
<#11154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD53A2IAHZIWI3S5Q27CUYLZWIHPDAVCNFSM6AAAAABE2UXOBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBXGM2DANRTGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
We ran into this using Remix and were not able to resolve the issue. Things we tried were:
Despite all the attempts we kept facing:
|
@felangel this seems like a different problem. Would you mind opening a new issue and fill out the template? Thanks! |
Sure, created a new issue at getsentry/sentry-cli#2157 |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.105.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
Expected Result
Sentry works even if I rename the project; or at least, I get instructions on how to update my build system. You guys have zero documentation on this and it's so frustrating.
Actual Result
error: API request failed
caused by: sentry reported an error: Invalid org token (http status: 401)
The text was updated successfully, but these errors were encountered: