-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Azure.CoreClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.
Description
In reference to this issue: #9521
If the endpoint passed is malformed in some way, e.g. the https:// is chopped off, we get a cryptic message raised from azure.core :
File "C:\Users\krpratic\azure-sdk-for-python\env\lib\site-packages\azure\core\pipeline\transport\_base.py", line 695, in format_url
base = self._base_url.format(**kwargs).rstrip("/")
KeyError: 'Endpoint'
KeyError should be raised with a better error message, e.g., like:
‘Failed to make service call. Did not understand the endpoint passed in: {some broken endpoint}. Please ensure that it is a valid URL’.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Azure.CoreClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.