-
Notifications
You must be signed in to change notification settings - Fork 4
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
Improve error messages #16
Comments
Unless I'm reading it wrong, the error is already printed out (the SSH key uniqueness error). The usage error is Cobra's standard setting of outputting the usage after all errors - I think it's here in the docs. I'm not against changing it, but it does seem like a lot of faff for not much benefit |
Just for searchability: The screenshot says
|
Ah, I had a volume from the wrong region left - after deleting that, creating the workspace worked again. And then I got confused by Hetzner's service issues. I'm not sure if devpod-provider-hetzner can give better error messages than |
Aaaah, now I understand the request - apologies. It looks like it's a Hetzner error code. I think there is an improvement that can be made, which is to put the Hetzner error into a nicer format - instead of just Thanks for the clarification. |
Pleased to clarify ;) I had it mixed-up a bit first, due to multiple problems at once (my mistake of changing the region while not thinking about the volume, Hetzner's hickup today + the inconsistent state of the workspace/leftover SSH key). |
That does sound like it would be an improvement, at least I would expect that Hetzner API would tell me what is wrong. The actual problem might be easily reproducible by 1. changing the Hetzner region used in the provider and 2. rebuilding the workspace. I think this provider should then try to re-use the volume - and fail because of the region change. (I use DevPod and devpod-provider-hetzner since yesterday and might not understand the details properly.) |
A second thing I notice: The error was logged as |
Bug description
When creating a workspace:
I believe I had a somewhat generic error message ("(Server error)") before.
This turned out to be:
What irritates me is the "Usage" printout here - could this be improved?
Steps to reproduce
Hard to reproduce, because this seems to happen when Hetzner has issues
Expected behaviour
Give a better error message.
Example repository
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: