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

gh cs ssh output getting full codespace details: error making request: received response with status code 500 #9003

Open
char8x opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working gh-codespace relating to the gh codespace command needs-triage needs to be reviewed

Comments

@char8x
Copy link

char8x commented Apr 26, 2024

Describe the bug

gh cs ssh output getting full codespace details: error making request: received response with status code 500

❯ gh --version
gh version 2.48.0 (2024-04-17)
https://github.com/cli/cli/releases/tag/v2.48.0

❯ gh auth status
github.com
  ✓ Logged in to github.com account char8x (keyring)
  - Active account: true
  - Git operations protocol: ssh
  - Token: github_pat_xxxxxxxx_***********************************************************

Steps to reproduce the behavior

# local environment check codespaces name
❯ gh cs list --json name --jq first.name
literate-tribble-xxxxxx

# check ssh service in codespaces
❯ service --status-all
 [ ? ]  hwclock.sh
 [ - ]  procps
 [ - ]  rsync
 [ + ]  ssh
 [ - ]  sudo

# try to ssh connect to codespaces
❯ gh cs ssh -c literate-tribble-xxxxxxx
getting full codespace details: error making request: received response with status code 500

# try to ssh connect to codespaces with specific key
❯ gh cs ssh -c literate-tribble-xxxxxxx -- -i ~/.ssh/id_ed25519
getting full codespace details: error making request: received response with status code 500

# try to debug ssh connect
❯ gh cs ssh -c literate-tribble-xxxxxxx --debug --debug-file ghcli_debug
getting full codespace details: error making request: received response with status code 500
# no debug file generated
❯ ls ghcli_debug
ls: ghcli_debug: No such file or directory

Expected vs actual behavior

Expect to connect to codespaces successfully

Logs

Paste the activity from your command line. Redact if needed.

@char8x char8x added the bug Something isn't working label Apr 26, 2024
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Apr 26, 2024
@williammartin williammartin added the gh-codespace relating to the gh codespace command label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gh-codespace relating to the gh codespace command needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

3 participants