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

Unsupported OAuth provider github error when starting a workspace without OAuth setup #21896

Closed
dkwon17 opened this issue Dec 21, 2022 · 0 comments · Fixed by eclipse-che/che-dashboard#705
Assignees
Labels
area/che-server area/dashboard kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current

Comments

@dkwon17
Copy link
Contributor

dkwon17 commented Dec 21, 2022

Describe the bug

On a Che installation without the GitHub OAuth flow set up, if starting a workspace that clones a GitHub repository, sometimes there is a Failed to open the workspace: Unsupported OAuth provider github error on the dashboard:

image

In this case however, this error does not prevent the workspace from starting (the workspace phase is still Starting and it soon transitions to Running without any issues)

Che version

next (development version)

Steps to reproduce

  1. Deploy Eclipse Che with chectl server:deploy -p openshift
  2. Start a workspace with a GitHub url. The project used in the screenshot above was https://github.com/eclipse-che/che-dashboard/
  3. When starting the workspace, the error will sometimes appear.

Expected behavior

The error should not appear.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/next

Environment

macOS

Eclipse Che Logs

No response

Additional context

I think this is happening because of this line here in the dashboard code throws an error.

Possible solutions can be:

  • Check here to see if OAuth flow is set up for GitHub, before trying to refresh the OAuth token. Should also work for BitBucket and Gitlab.
  • Catch the error and log the error to the console instead
@dkwon17 dkwon17 added the kind/bug Outline of a bug - must adhere to the bug report template. label Dec 21, 2022
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Dec 21, 2022
@ibuziuk ibuziuk added sprint/next severity/P1 Has a major impact to usage or development of the system. area/che-server area/dashboard and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Dec 22, 2022
@dkwon17 dkwon17 changed the title Unsupoprted OAuth provider github error when starting a workspace without OAuth setup Unsupported OAuth provider github error when starting a workspace without OAuth setup Jan 4, 2023
@svor svor mentioned this issue Jan 10, 2023
60 tasks
@vinokurig vinokurig self-assigned this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-server area/dashboard kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants