Skip to content
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

Workaround for botocore 1.28 (round 2) #1087

Merged
merged 3 commits into from
Oct 25, 2022

Conversation

ikonst
Copy link
Contributor

@ikonst ikonst commented Oct 25, 2022

In #1083 we've started passing an endpoint_url parameter to _convert_to_request_dict due to changes made in botocore 1.28.

All of our integration tests have an explicit host, and all our unit tests either mock _make_api_call entirely or mock the botocore client, so we didn't realize that endpoint_url cannot be None. To determine endpoint_url in botocore ≥1.28, we must call another private method, _resolve_endpoint_ruleset.

@ikonst ikonst force-pushed the 2022-10-25-_resolve_endpoint_ruleset branch 2 times, most recently from 99f1065 to 1ccf5ac Compare October 25, 2022 18:00
@ikonst ikonst force-pushed the 2022-10-25-_resolve_endpoint_ruleset branch from 1ccf5ac to 50c57eb Compare October 25, 2022 18:01
@ikonst ikonst linked an issue Oct 25, 2022 that may be closed by this pull request
@ikonst ikonst added the bug label Oct 25, 2022
@ikonst ikonst merged commit efe50f9 into 5.x Oct 25, 2022
@ikonst ikonst deleted the 2022-10-25-_resolve_endpoint_ruleset branch October 25, 2022 18:11
ikonst added a commit that referenced this pull request Oct 25, 2022
In #1083 we've started passing an `endpoint_url` parameter to _convert_to_request_dict due to changes made in botocore 1.28.

When a model does not specify a `host`, the `endpoint_url` would be `None`. To determine the actual `endpoint_url` in botocore ≥1.28, we must call another private method, `_resolve_endpoint_ruleset`.
@ikonst ikonst mentioned this pull request Nov 2, 2022
@ikonst ikonst mentioned this pull request Nov 25, 2022
@ikonst ikonst mentioned this pull request Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_convert_to_request_dict fix introduced error in urllib
2 participants