Skip to content
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

"Authorization by Eclipse required" error when attempting to publish with valid access token #913

Open
DetachHead opened this issue May 15, 2024 · 9 comments

Comments

@DetachHead
Copy link

my extension is failing to publish with the following error:

Run ovsx publish --packagePath vscode-pyright.vsix --pat ***
  ovsx publish --packagePath vscode-pyright.vsix --pat ***
  shell: /usr/bin/bash -e {0}
  env:
    PYTHON_VERSION: 3.12
    ARTIFACT_NAME_VSIX: vsix
    VSIX_NAME: vscode-pyright.vsix
    VSIX_DIR: packages/vscode-pyright
    NPM_PACKAGE_DIR: packages/pyright
❌  Authorization by Eclipse required.
See the documentation for more information:
https://github.com/eclipse/openvsx/wiki/Publishing-Extensions
Error: Process completed with exit code 1.

(output from https://github.com/DetachHead/basedpyright/actions/runs/9094505273/job/24995738039)

i have not changed the access token since the previous release, and it's still valid on open-vsx.org:

image

it's definitely using that token since it updated the "Accessed" time. any ideas?

@amvanbaren
Copy link
Contributor

It's the Eclipse access token that is missing or has expired.
You might be able to solve the issue by logging in to open-vsx.org, go to User settings and click the 'Log in with Eclipse' button.

I'm currently looking into the Eclipse OAuth flow. Keep an eye on #912.

@DetachHead
Copy link
Author

is this something that can be set to never expire, or refreshed automatically? i'd rather not have to manually login and do this every month (or however often it expires)

@amvanbaren
Copy link
Contributor

I'll add a job that checks for expired Eclipse access tokens and tries to refresh them.
Then only when the refresh token itself expired you'd have to do a manual login. This should rarely happen.

@thegecko
Copy link
Member

thegecko commented May 16, 2024

We are seeing the same issue.

You might be able to solve the issue by logging in to open-vsx.org, go to User settings and click the 'Log in with Eclipse' button.

As we use a service account on open-vsx which doesn't match my eclipse account github username, is the expectation to create a new eclipse account for all open-vsx users?

cc @federicobozzini

@amvanbaren
Copy link
Contributor

In general it's the user associated with the personal access token that gets checked for a valid publisher agreement.
You can use the personal access token in a CI workflow to publish on behalf of you.

@amvanbaren
Copy link
Contributor

Disregard what I said before. Release v0.15.4 fixes the issue. It will go live as soon as @kineticsquid has had a chance to review it.

@kineticsquid
Copy link

@amvanbaren I approved the PR.

@DetachHead
Copy link
Author

now i'm getting a different error:

 ❌  Request for retrieving user profile failed: I/O error on GET request for "https://api.eclipse.org/account/profile/detachhead": webdev.eclipse.org: Name or service not known
See the documentation for more information:
https://github.com/eclipse/openvsx/wiki/Publishing-Extensions

https://github.com/DetachHead/basedpyright/actions/runs/9286481118/job/25553279137

@amvanbaren
Copy link
Contributor

@DetachHead Getting https://api.eclipse.org/account/profile/detachhead works for me. I guess it was a temporary outage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants