You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 7, 2026. It is now read-only.
query.fetch() fails if GOOGLE_CLOUD_DISABLE_GRPC is set #124
This new behavior causes an error: run_query() got an unexpected keyword argument 'request' because when the GOOGLE_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 a request parameter.
Example:
# run_query.pyfromgoogle.cloudimportdatastoreclient=datastore.Client() # Assuming an auth'd environmentresults= [entityforentityinclient.query(kind="Foo").fetch()]
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.
Note that we have a broader issue here: all of the methods of the HTTPDatastoreAPI need to be updated to match the request-only pattern of the new GRPC API.
This new behavior causes an error:
run_query() got an unexpected keyword argument 'request'because when theGOOGLE_CLOUD_DISABLE_GRPCenvironment 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 arequestparameter.Example:
I feel like this can be fixed by updating the signature for the HTTPDatastoreAPI#run_query to accept
requestand only subsequently build the request object if it's not passed in, so that the signatures match for all implementations.