-
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
get_bucket_location returns NoneType error when client error is added #1884
Comments
@samhine - Thank you for your post. I am able to reproduce the issue. I would mark this as bug. |
gcf-merge-on-green bot
pushed a commit
to GoogleCloudPlatform/python-docs-samples
that referenced
this issue
Mar 27, 2020
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [boto3](https://togithub.com/boto/boto3) | patch | `==1.12.21` -> `==1.12.30` | --- ### Release Notes <details> <summary>boto/boto3</summary> ### [`v1.12.30`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11230) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.29...1.12.30) ======= - api-change:`sagemaker`: [``botocore``] Update sagemaker client to latest version - api-change:`fsx`: [``botocore``] Update fsx client to latest version - api-change:`securityhub`: [``botocore``] Update securityhub client to latest version ### [`v1.12.29`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11229) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.28...1.12.29) ======= - api-change:`managedblockchain`: [``botocore``] Update managedblockchain client to latest version - api-change:`ce`: [``botocore``] Update ce client to latest version - api-change:`application-insights`: [``botocore``] Update application-insights client to latest version - api-change:`detective`: [``botocore``] Update detective client to latest version - api-change:`es`: [``botocore``] Update es client to latest version - api-change:`xray`: [``botocore``] Update xray client to latest version ### [`v1.12.28`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11228) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.27...1.12.28) ======= - api-change:`athena`: [``botocore``] Update athena client to latest version - api-change:`rds-data`: [``botocore``] Update rds-data client to latest version - api-change:`eks`: [``botocore``] Update eks client to latest version - api-change:`organizations`: [``botocore``] Update organizations client to latest version ### [`v1.12.27`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11227) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.26...1.12.27) ======= - api-change:`apigatewayv2`: [``botocore``] Update apigatewayv2 client to latest version - api-change:`eks`: [``botocore``] Update eks client to latest version - api-change:`route53`: [``botocore``] Update route53 client to latest version ### [`v1.12.26`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11226) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.25...1.12.26) ======= - api-change:`servicecatalog`: [``botocore``] Update servicecatalog client to latest version ### [`v1.12.25`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11225) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.24...1.12.25) ======= - api-change:`outposts`: [``botocore``] Update outposts client to latest version - api-change:`acm`: [``botocore``] Update acm client to latest version ### [`v1.12.24`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11224) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.23...1.12.24) ======= - api-change:`rds`: [``botocore``] Update rds client to latest version - api-change:`mediaconnect`: [``botocore``] Update mediaconnect client to latest version - api-change:`personalize`: [``botocore``] Update personalize client to latest version ### [`v1.12.23`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11223) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.22...1.12.23) ======= - api-change:`mediaconvert`: [``botocore``] Update mediaconvert client to latest version ### [`v1.12.22`](https://togithub.com/boto/boto3/blob/master/CHANGELOG.rst#​11222) [Compare Source](https://togithub.com/boto/boto3/compare/1.12.21...1.12.22) ======= - api-change:`s3control`: [``botocore``] Update s3control client to latest version - bugfix:Stubber: [``botocore``] fixes `#​1884 <https://github.com/boto/botocore/issues/1884>`\_\_ - api-change:`cognito-idp`: [``botocore``] Update cognito-idp client to latest version - api-change:`ssm`: [``botocore``] Update ssm client to latest version - api-change:`ecs`: [``botocore``] Update ecs client to latest version - api-change:`elasticache`: [``botocore``] Update elasticache client to latest version </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
When adding a client error through
get_bucket_location
, rather than raise aClientError
(or the specified Service Error Code, we instead receive;AttributeError: 'NoneType' object has no attribute 'stream'
Working Example (with
get_bucket_logging
)Non-working Example (with
get_bucket_location
)The full stack response from this error is;
Summary
I've tried searching open/closed issues but can't find something similar, nor a working example online using
get_bucket_location
. I fear this might be a bug withinbotocore.stub
itself. Any help would be greatly appreciated! Thanks.The text was updated successfully, but these errors were encountered: