I’ve got an existing site (raymondcamden.com) that I’m trying to switch to a new GitHub repo. When I do so, I get:
{
"code":422,
"msg":"Environment variable with the same key name already
exists on this site. Try a different key or edit the existing variable.",
"error_id":"{:request_id=\u003e"01GWJDER1W3ASSC16DQ21X879G"}"}
I’m not sure what to do. My site uses environment variables of course, but I’m not changing them. The only change I did was to the repo to use for source.
So, this may be a false positive. Looking at my build, the change went through, but the error that my build had was NOT reported. So I had a bug, but the Netlify admin here didn’t properly handle the issue.
So it seems the problem is:
If you change your repo -
And the new repo has a build error -
You get the wrong error and it looks like the change didn’t happen, even though it did.