Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Fix a bug where an unbounded number of credentials wrappers got added. #296

Merged
merged 4 commits into from
Mar 10, 2017

Conversation

ojarjur
Copy link
Contributor

@ojarjur ojarjur commented Mar 8, 2017

This fixes the issue where the fact that we were sharing a single
httplib2.Http instance caused each request to add an additional
credentials wrapper around that single instance.

That, in turn, caused a RuntimeError: maximum recursion depth ...
error message once too many API calls had been made.

This fixes googledatalab/datalab#1251

This fixes #1251, where the fact that we were sharing a single
`httplib2.Http` instance caused each request to add an additional
credentials wrapper around that single instance.

That, in turn, caused a `RuntimeError: maximum recursion depth ...`
error message once too many API calls had been made.
@yebrahim
Copy link
Contributor

yebrahim commented Mar 8, 2017

It might be cleaner to revert #195 instead of using copy. LGTM otherwise. I would've loved to get that working without making a new object everytime though. Is there another way around this?

Copy link
Contributor

@parthea parthea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue googledatalab/datalab#1251 is resolved with this PR. Thanks @ojarjur!

I understand that google.datalab is part of GA. I'm still using the original datalab library. Could we also patch the _http.py file in the original datalab library at
https://github.com/googledatalab/pydatalab/blob/master/datalab/utils/_http.py?

@ojarjur ojarjur force-pushed the ojarjur/fix-credentials-wrapping branch from c413fc9 to 732f5dd Compare March 10, 2017 22:27
@ojarjur
Copy link
Contributor Author

ojarjur commented Mar 10, 2017

@parthea That's a fair point.

I added the fix to the older library too.

@ojarjur ojarjur merged commit 84ccb95 into master Mar 10, 2017
@brandondutra brandondutra deleted the ojarjur/fix-credentials-wrapping branch July 11, 2017 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeError: maximum recursion depth exceeded
5 participants