-
Notifications
You must be signed in to change notification settings - Fork 44
query.fetch() fails if GOOGLE_CLOUD_DISABLE_GRPC is set #124
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
Comments
@tomthorogood Thanks for the report! @crwilcox We need to set up CI (maybe periodic, rather than precommit?) to exercise the library with |
Note that we have a broader issue here: all of the methods of the |
The |
* tests: refactor to helpers for repeated tests * fix: update 'HTTPDatastoreAPI.allocate_ids' to follow request-only pattern Toward #124 * fix: add missing 'HTTPDatastoreAPI.reserve_ids' method Closes #134. * fix: update 'HTTPDatastoreAPI.rollback' to follow request-only pattern Toward #124 * fix: update 'HTTPDatastoreAPI.commit' to follow request-only pattern Toward #124 * fix: update 'HTTPDatastoreAPI.begin_transaction' to follow request-only pattern Toward #124 * fix: update 'HTTPDatastoreAPI.run_query' to follow request-only pattern Toward #124 * fix: update 'HTTPDatastoreAPI.lookup' to follow request-only pattern Toward #124 * fix: add 'retry' / 'timeout' args to HTTPDatastoreAPI methods Closes #124. * chore: lint * tests: run systests also w/ GRPC disabled. Closes #133.
I am so sorry, I only just saw that this was resolved. Thank you so much! I really appreciate it. |
This new behavior causes an error:
run_query() got an unexpected keyword argument 'request'
because when theGOOGLE_CLOUD_DISABLE_GRPC
environment variable is set (which is a requirement in some runtimes, e.g., when using gunicorn with gevent), the underlying HTTPDatastoreAPI#run_query method does not accept arequest
parameter.Example:
I feel like this can be fixed by updating the signature for the HTTPDatastoreAPI#run_query to accept
request
and only subsequently build the request object if it's not passed in, so that the signatures match for all implementations.The text was updated successfully, but these errors were encountered: