-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show errors received on registration (#86)
Currently I'm trying to setup a storage controller in a new environment but registration is failing with `Unable to find pageserver version from` message, which doesn't tell much. I'm sure there's a configuration error somewhere but it's hard to debug when the message doesn't contain any details. This PR changes the `get_data` method to raise an exception on unexpected responses so that the status code and response body are shown. Also changes the same method to not silently discard `urllib.error.URLError` if it happens. This doesn't change the behavior of the registration script significantly because we're already exiting if the response doesn't contain what we need.
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters