Replies: 11 comments 9 replies
-
cc @prashantvc |
Beta Was this translation helpful? Give feedback.
-
@ssbarnea Could you please confirm you followed the following steps to create PAT token?
|
Beta Was this translation helpful? Give feedback.
-
I was able to get a token working but only after using the BFG of generating one with full access to all organizations. The reality is that that current process for generating tokens for publishing to the marketplace is a huge PITA. The UI is confusing and cryptic, I would not exaggerate to say that this was the worst authentication experience I encountered in two decades. Please fix this once for good by adding an option in the marketplace UI to generate a token. As you already removed the ability to create organizations from the command line, it would make sense to at least generate tokens from browser on the manage publisher/extension page, without redirecting user to other systems. I hope you will take this ticket as "constructive feedback" and not personal. If a product manager ever reads this ask him to make an user test experiment: ask someone that never used azure devops or published a vscode extension publish one generated with the vsce tool. Do not forget to start a timer ;) -- IMHO, it should take less than 10 mins in average, not hours or days of frustrations and cryptic error messages. I know that this is not really caused by "vsce" itself at a tool, but more of the backend issue (marketplace). |
Beta Was this translation helpful? Give feedback.
-
Hey @ssbarnea, I agree with everything you said about the generating the token. We are experimenting different options, and I would love to get your feedback. Please pick a time here https://book.ms/[email protected], we can chat about it :) |
Beta Was this translation helpful? Give feedback.
-
@prashantvc I had this problem also. I resorted to using the website to manage my extensions instead for a long while. I had another go because I wanted to use Github Actions to do this. It was only after reading this issue that I got it working by generating a token with all orgs and all permissions. It was on 4th attempt that it worked! |
Beta Was this translation helpful? Give feedback.
-
I have exactly the same Problem I get a I tried recreating the token and even tried with a full access token it didn't work, the same error. I tried it 8 times with new tokens and vsce installations. Within GitHub Actions It's the same Problem/ It just fails. |
Beta Was this translation helpful? Give feedback.
-
One of the worst and most frustrating journeys, I've been sitting on this issue for years. Still can't get into my VSCE and update my package... |
Beta Was this translation helpful? Give feedback.
-
I can only publish from one computer. When I try to |
Beta Was this translation helpful? Give feedback.
-
Publishing to the MS marketplace has got to be one of the worst user experiences I have had the displeasure of using. |
Beta Was this translation helpful? Give feedback.
-
I also ran into this 401 today setting up an extension for the first time. I think you can still limit the token to "Marketplace > Manage" but give it access to all of your organizations. A quickfix for the CLI/auth service could be a better error, e.g.: "Error: Failed request: (401)" -> "Error: organization inaccessible (401)" |
Beta Was this translation helpful? Give feedback.
-
I had the same error. The solution for me was to select "All accessible orgnaizations" in the "Organization" menu even if I only have one organization and it was selected. |
Beta Was this translation helpful? Give feedback.
-
I created a publisher named zbr and manually uploaded my extension to it but it seams impossible to setup the CLI vsce for publishing as one. Based on what I read on microsoft/vscode-vsce#507 i believe I am not the only one confused by the weird authentication setup.
My account
[email protected]
is listed as owner ofzbr
publisher and I tried generating a PAT fromhttps://dev.azure.com/sorinsbarnea/_usersSettings/tokens
but it does not work when I try to use it to login using vsce, I always get Failed request: (401).The page from https://marketplace.visualstudio.com/_apis/connectiondata does report something like:
Update
After generating full access to all organizations on my PAT, the error message changed from 401 into:
I am not sure what this means, but somehow I feel that the dev.azure.com user is different than the one used by the marketplace. At the same time the system fails to give any hints regarding the the kind of magic required to authenticate on dev.azure.com using exactly the same user.
If I try to access the directory switch option, I can see:
Still, this does not tell me which kind of directory I am support to use
Beta Was this translation helpful? Give feedback.
All reactions