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

[BUG] Poor error message when update.k3s.io returns a 5XX #1129

Open
olix0r opened this issue Aug 19, 2022 · 0 comments
Open

[BUG] Poor error message when update.k3s.io returns a 5XX #1129

olix0r opened this issue Aug 19, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@olix0r
Copy link
Contributor

olix0r commented Aug 19, 2022

What did you do

The other evening I created a cluster with:

:; k3d cluster create --image=+latest

At the time update.k3s.io was returning 503 errors. These errors include an HTML response body, which causes a pretty obtuse error from k3d:

FATA[0000] error getting K3s version for channel latest: error unmarshalling channelserver response: invalid character '<' looking for beginning of value 

What did you expect to happen

k3d should check the response code when fetching channels and, if the status is not 200, it should print an error message that reports the status code it received instead of trying to parse the HTML response body.

Which version of k3d

  • v5.4.4
@olix0r olix0r added the bug Something isn't working label Aug 19, 2022
@olix0r olix0r changed the title [BUG] Poor error message when update.k3s.io returns a 5XXX [BUG] Poor error message when update.k3s.io returns a 5XX Aug 19, 2022
@iwilltry42 iwilltry42 added this to the v5.5.0 milestone Aug 29, 2022
@iwilltry42 iwilltry42 modified the milestones: v5.5.0, v5.6.0 May 17, 2023
@iwilltry42 iwilltry42 modified the milestones: v5.6.0, v5.8.0 Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants