I try to deploy a secont project and I’ve got a Error: Unauthorized.
Can you try running
ntl status or
netlify status this will tell you what user is logged in including git user.
That’s good news. This post looks like a duplicate of this post. Could you try logging out and then back in? It’s likely the auth token just need updating
Is this the first time you are trying to deploy or has it worked in the past.
Have you tried unlinking and re-linking the site?
Second time, I deleted the first site.
Yes it did worked in the past
- Netlify init (in directory).
- npm run buid. (react project).
- netlify deploy
And it worked.
THX for the time.
Hey there, @Stan-Remus
Welcome to the Netlify Forums
Thanks for sharing your solution here! It will help future community members who may get stuck on a similar obstacle.
Try to delete the site ID from /your_project/.netlify/state.json and deploy again!
It works well for me !
Hi, @bakethatcake. That you for taking the time to share that solution.