-
Notifications
You must be signed in to change notification settings - Fork 216
vsce create-publisher returns 401 #11
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
Comments
Resolved the issue. The reason for returning 401 was that I didn't set the |
Adding a link to explain what this means as I googled this issue and landed here. No real explanation was given as how to enable this setting. https://code.visualstudio.com/docs/tools/vscecli#_common-questions |
@pjmeyer see above. Could use your help on improving SEO holistically for the site. |
I'm struggling with this now, can't figure out what I'm supposed to enter as publisher for |
Hi @Sequoia, sorry to read that! Could you get a hold of a Personal Access Token? Once you do, you can call |
@joaomoreno Yes I have one, what i don't know is what to enter for |
Here's my "team" URL: https://34ks.visualstudio.com/ |
Same here. OS Version: Windows 10 Home 10.0.10538 VS Team Services Access Token Details: Output:
|
@npruehs This issue is closed. Are you sure you created your PAT for all accessible accounts?
|
@joaomoreno this bug should be migrated to the VSCode Extension platform/server repo; this is a UI bug in the server's response. Expected
User is given some instruction on how to remedy this 👉🏼_common_👈🏼 issue with the peculiarities of the MSFT/VS permissions system that are frequently confusing to new users. Actual
User is given no help, it appears they entered something wrong at the command line (whereas in fact the issue is with server account settings). You try to fix it, checking your credentials and retrying several times, to no avail. 😿 |
Or perhaps the help message should come from |
Agreed. Pushed a commit which guides users towards fixing this specific problem. |
Worked like a charm. Thanks all! |
👏🏼👏🏼👏🏼👍🏼 thanks!! |
I get 401 here even though I set up the token for all accessible accounts. At a dead end here... |
@joshjg Have you tried picking another publisher name? |
@joaomoreno Yes, to no avail. |
@joshjg could you give us some more info like the account name where you created the token and the publisher id you are looking to create? Might help us investigate further. If possible can you write to us at [email protected] we can have someone from the team debug the issue. As a workaround you could create the publisher manually at http://marketplace.visualstudio.com/manage and upload the packaged vsix directly to get unblocked |
So, I'm in the same situation, trying I've just published the extension using @hamenon workaround 👏 Why don't you put this workaround in the docs? |
Added to the docs: microsoft/vscode-docs@5fad3ce |
I'm afraid the workaround only allows you to create a new extension but not to update one. What happens if I delete my extension and publish a new version? how this affects users with the extension installed? How can I debug |
I've managed to update the extension using the very hidden option in the extension... If you point me to the GitHub repo of the marketplace I'd like to file an issue. |
This is such a huge pain point to beginner extension devs. If it weren't for this issue thread, I'd be stuck. Thanks for updating the documentation, I hope it lands soon. |
@hamenon There seems to be a lot of friction over here. Is there any way vsce can get the error message from the 401 through the use of |
We did discover an issue with the PAT's that are issued by the VSTS Identity Service. This has now been fixed and the deployed on production. Note that only PAT's created in the last week or so are affected.
|
So I just hit this trying to publish my first extension. Really have no idea what "which has access to all accessible accounts" means. What should I do from here? |
@geddski This is the option you're looking for: |
Ah that worked. Thanks!
|
i have get the same problem, and finally find the reason is "forget to change organization to all accoujnts when create token" |
Well, I am using an account at work and I had to enable a PAT for "All accessible organizations", which of course is similar to the case "All accounts". But it should be noted as a possible scenario. |
Got the same unhelpful error message.
On |
Thank you very much @hamenon |
It was a terrible mistake, I don't understand the meaning of choice “All accessible organizations” ,That seems to be the only choice , The other option doesn't seem to make any sense. |
I have lost the existing token. The person who generated the token first time is no longer with the team. How can I associate a new token from a new account to existing publisher? |
Got the same thing. I tried to find that permission in the token list, but unlucky. |
hey @maintainers pls put this in your error message or make your UI more intuitive. |
Please just give us a one click oauth system. I have no clue what my publisher name is. My token isn't working. I can't figure this out. The docs go in a loop. There is no example of what "publisher" is supposed to look like in |
At least a video or blog with screenshots would be a good step towards making this process less of a pain. Right now it sucks big time. |
It's the next day and I've given up on publishing from the terminal. Guess I'm rocking the Marketplace upload dropzone from here on out. |
vsce publish Geting error while publishing other all steps works well |
All accessible organizations |
Here is how I solved the 401 error in order to publish VS Code extensions using a GitHub Actions workflow:
- name: 'Install dependencies'
run: |
yarn global add @vscode/vsce
yarn install
- name: 'Authenticate'
run: |
git config --global user.email "${{ secrets.MY_GITHUB_EMAIL }}"
git config --global user.name "Benny Neugebauer"
- name: 'Publish VS Code extension'
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
vsce publish patch I added a "postversion" script to my "package.json" file to push the version update also to my GitHub repository: "scripts": {
"postversion": "git push origin main && git push origin --tags"
} Full version here: https://github.com/bennycode/sort-everything/blob/v1.3.3/.github/workflows/publish-extension.yml Hope this helps! ✌️ |
I'm trying to create a publisher with a
Personal Access Token
but it fails to create it.The text was updated successfully, but these errors were encountered: