You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an npm package project that I'm publishing to an ADO Artifact feed. I had my .yarnrc.yml working based on issue #316. I've been able to yarn npm publish with success for a couple days.
Yesterday I published a few times, then a few minutes later I tried to publish again and started getting the "Invalid authentication (as an unknown user)" error while running the yarn npm publish command. I did not make a change to the .yarnrc.yml file since I got it working. I've tried refreshing the PAT in ADO and recreating the base64 string <org_name>:<PAT>, but it didn't fix the issue.
I'm not sure how to troubleshoot this. I also tried using my actual user name in the npmAuthIdent base64 string (<user_name>:<PAT>), which didn't work either. I don't know if something was cached and expired causing this - or what that could even be? I'm able to log in and view the ADO feed just fine.
@paul-soporan recently fixed the error message for that (#1809) to include more details, could you try using the version from master (yarn set version from sources) and then publish again?
Yep. The issue was that I forgot to run yarn version patch on the last publish attempts. I ran yarn set version from sources and got "Forbidden" instead of the "Invalid authentication" error. After patching the version it worked again. Thanks!
Describe the bug
I'm working on an npm package project that I'm publishing to an ADO Artifact feed. I had my
.yarnrc.yml
working based on issue #316. I've been able toyarn npm publish
with success for a couple days.Yesterday I published a few times, then a few minutes later I tried to publish again and started getting the "Invalid authentication (as an unknown user)" error while running the
yarn npm publish
command. I did not make a change to the.yarnrc.yml
file since I got it working. I've tried refreshing the PAT in ADO and recreating the base64 string<org_name>:<PAT>
, but it didn't fix the issue.I'm not sure how to troubleshoot this. I also tried using my actual user name in the
npmAuthIdent
base64 string (<user_name>:<PAT>
), which didn't work either. I don't know if something was cached and expired causing this - or what that could even be? I'm able to log in and view the ADO feed just fine.To Reproduce
The
.yarnrc.yml
file looks like this:Environment:
The text was updated successfully, but these errors were encountered: