-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/featureFeature requests/implementationsFeature requests/implementationsstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
Why do you hide the error info when ConnectionError occurred?
poetry/poetry/publishing/uploader.py
Lines 39 to 52 in b1d380e
| class UploadError(Exception): | |
| def __init__(self, error: Union[ConnectionError, HTTPError, str]) -> None: | |
| if isinstance(error, HTTPError): | |
| message = "HTTP Error {}: {}".format( | |
| error.response.status_code, error.response.reason | |
| ) | |
| elif isinstance(error, ConnectionError): | |
| message = ( | |
| "Connection Error: We were unable to connect to the repository, " | |
| "ensure the url is correct and can be reached." | |
| ) | |
| else: | |
| message = str(error) | |
| super(UploadError, self).__init__(message) |
The message is absolutely not informative.
Connection Error: We were unable to connect to the repository, ensure the url is correct and can be reached.
- The repository URL is not shown
- The real
ConnectionErrormessage is hidden
It is impossible to understand what happened. In my case I'm getting ('Connection aborted.', ConnectionAbortedError(10053)) error with my private repository. I could not understand what was happening until I added debug prints to poetry code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureFeature requests/implementationsFeature requests/implementationsstatus/triageThis issue needs to be triagedThis issue needs to be triaged