-
Notifications
You must be signed in to change notification settings - Fork 132
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
Can not install extensions via commandline #141
Comments
Is it possible your token has expired? |
Nope that is a brand new token (thought of that, revoked and created a new token) and the token successfully publishes extensions with no changes to those steps... |
Interesting. I was able to repro this. Someone must have changed something important without telling me :) I'll have a look next week. Sorry for the inconvenience! |
Thanks for looking into it so quickly.. Have a great weekend.. hopefully it won't be too nasty a fix for the team. |
Whew; it's not just me. |
The exactly same thing with me. |
Just a quick update - we briefly looked into this issue and so far don't know what the cause is. I wasn't able to reproduce it on my local dev instance, only against production. Our team is quite busy this week with RC2, so we probably won't be able to really investigate until next week. Sorry for the delays! You should still be able to use Install through the web UI. |
I have the fix for this - I'm wrapping things up now but I have to leave early today - I will try to push this evening. |
Ok, hopefully this is fixed in e38bbdb. Let me know if you run into any issues. Thanks. |
Not sure if this is related to this fix, but I tried to run my release definition today which shares an existing extension with another account and then tries to install it, but now I'm getting the following error:
Any ideas if this is related? It worked yesterday by the way. |
Interesting, I'm not quite sure what that is at the moment. I will look into it when I get a chance. For now can you revert to the previous version? |
Unfortunately I can't do that since I'm using the Build and Release tasks for Extensions. They simply download the latest version of the TFS CLI onto the build agent and I don't currently have a dedicated agent available. |
Ok. For now I will republish the former version and add a beta tag to the new one. Sorry for the confusion. |
So, I think this was related to switching to ES6 output, which could have caused issues on older versions of nodejs. I switched back to ES5. Would you mind trying again? |
node should be packaged with tfx like we did with old node agent ... |
Well, the good news is that sharing the extension with another account works again now. Unfortunately installing the extension into an account still fails, although with a different error message than originally reported:
|
Ok, thanks for the info. I will have to look into this more when I get back in the office on Friday. Installation worked fine for me when I tested with my account, so I'm not sure why you're getting a 401. I will forward this thread to someone else on my team in case they are able to take a look while I'm out. |
Any updates on this? |
Ah, it looks like it works again now. I probably didn't have the right scopes checked. Is there any up-to-date documentation on which ones you actually need? It looks like these have changed recently. |
Good news! I'll make sure the documentation gets updated. Thanks. |
This command used to work with VSTS with no problems...
tfx extension install --token [My Persona Access Token] --service-url https://marketplace.visualstudio.com/ --publisher [My Publishing Account] --extension-id [My Extention] --accounts [target account]
(values removed to protect the innocent)
I hadn't used it for a few weeks, but now all I receive is the following error :
[target account]: [Failed: Error: Failed Request: Forbidden(403) - Access Denied: [user name] needs the following permission(s) to perform this action: Edit instance-level information]
Nothing was changed in our account in VSTS nor was anything changed in the release that uses this code.. I have also tried this manually with the same error..
I have looked into VSTS online and can't find anywhere to set or confirm if Edit instance-level information has been edited... Also I can still install extensions via the marketplace (even the extension I had previously automated the installation of).
Thanks
The text was updated successfully, but these errors were encountered: