-
Notifications
You must be signed in to change notification settings - Fork 86
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
Signing in using Lightspeed fails when VS Code is running remotely #938
Comments
Also having the same issue. Might be proxy related VSCode 1.79.2 2023-07-06 12:30:46.164 [error] [Extension Host] [ansible-lightspeed-oauth] error message: Request failed with status code 407 |
Not in my case. I am not running behind a proxy when I reproduce the error. |
I'm having the same issue trying to use Lightspeed from Github Codespace. I get prompted to open in my local VSCode and the CodeSpace just keeps waiting for the response but it never gets it. |
Try out the latest version and let us know if it is fixed or not. |
Using 2.6.92 but still doesn't work. Goes through the flow, waits 60s, then cancels. I don't get the same error as I posted in my last reply though. Only relevant log is the timeout after 60s |
Thank you @priyamsahoo, can you share the PR that would have fixed this (I have not tested yet)? |
@priyamsahoo I have tested with version |
For me, Ansible Lightspeed redirected to a |
Having the same issue here: output[windows]: $ cat /etc/redhat-release $ code -v $ xdg-mime query default x-scheme-handler/vscode $ env | grep -E "DBUS|SSH_TTY|SSH_AUTH_SOCK|DISPLAY|SESSION" | sort |
Sent PR #1012 for review. Note that changes on Lightspeed server are also required for making this work. A PoC code was tested with:
and I found the code worked with 1 (Codespaces) and 3 (code-server), but 2 (Dev Spaces) failed with a 404 error. I have opened a request against Dev Spaces on that issue. |
is this issue fixed by che-incubator/che-code#319? |
@TamiTakamiya do I understand correct that we need Ansible extension with these changes: #1012 to have Ansible Lightspeed on Dev Spaces? When can we expect that new version of Ansible extension will be published on opensx.org? |
@svor #1012 requires corresponding changes on the server side. Currently our staging server contains those changes, but the production server at https://c.ai.ansible.redhat.com/ has not been updated yet. We are planning to update it soon and will publish the updated extension once it's done. Hopefully it will happen within a week. Thanks! |
A new version (v2.10.130) of Ansible VS Code Extension was published to Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=redhat.ansible This contains the changes required to have Lightspeed on Dev Spaces, but a change is also required on Dev Spaces to use it. On GitHub Codespaces, the OAuth2 Authorization flow works w/o additional changes. |
@TamiTakamiya thanks for updates |
Tried it with DS 3.11 and it works good: |
@svor Thank you for your updates. I am going to close this issue. |
Hi @svor @TamiTakamiya . Currently, the solution only works for Dev Spaces instances hosted at developers.redhat.com. On-premise Dev Spaces support is being worked on. |
Summary
After installing the extension, when I click on the "Connect" button I am redirected to local URI (
vscode://redhat.ansible
orchecode://redhat.ansible
) but I would expect to be redirected to VS Code URL instead.The problem can be reproduced using OpenShift Dev Spaces using Red Hat Developer Sandbox (https://workspaces.openshift.com) or GitHub Codespaces.
Extension version
v2.4.78
VS Code version
insiders
Ansible Version
OS / Environment
N/A
Relevant log output
No response
The text was updated successfully, but these errors were encountered: