-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change exception text to be more readable #2968
Comments
Hi @shayfisher thanks for the feature request. Here is the Because there are several conditions that could result in the Also in the meantime you could also consider get more detailed logs when debugging by adding |
Describe the feature
After reading this article - https://docs.aws.amazon.com/appstream2/latest/developerguide/access-api-cli-through-interface-vpc-endpoint.html
They have the following example:
appstream2client = boto3.client('appstream',region_name='<aws-region>',endpoint_url='<vpc-endpoint-id>.api.appstream.<aws-region>.vpce.amazonaws.com'
If endpoint url is given for the boto3 appstream client without a schema (HTTPS/HTTP) the following exception is raised (ValueError) -
botocore/botocore/endpoint.py
Line 402 in a3c3628
which doesn't help the developer understand what should he fix
Use Case
I'm trying to use appstream API via boto3 from Lambda
Proposed Solution
I would suggest adding schema to the error message so it would be clear what is the desired fix -
e.g - raise ValueError("Invalid endpoint: HTTPS/HTTP://%s" % endpoint_url) or something like that
Other Information
No response
Acknowledgements
SDK version used
1.29.152
Environment details (OS name and version, etc.)
Windows/Linux
The text was updated successfully, but these errors were encountered: