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

fix: patch emulator channel to be created accordingly #288

Merged
merged 4 commits into from Feb 18, 2021

Conversation

lidizheng
Copy link
Contributor

Fixes googleapis/python-api-core#124 or #286.

The behavior that, while using emulator, the AsyncIO API will hang is caused by the workaround of using a more tolerant credentials. Emulator is ran locally without SSL protection, so normal credentials won't work. This PR is a temporary fix that allows the emulator channel to adapt corresponding transport class.

The most ideal fix could go like:

  1. Introduce local credentials to google-auth, or have a more flexible credentials class allowing replace channel credentials;
  2. Update the python-api-core repo to handle consumption of credentials in the create_channel function.

However, for a foreseeable future, current patch should work fine.

@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Jan 9, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 9, 2021
@lidizheng lidizheng changed the title fix: patch emulator channel to be created properly fix: patch emulator channel to be created accordingly Jan 9, 2021
@lidizheng lidizheng marked this pull request as ready for review January 9, 2021 02:54
@lidizheng lidizheng requested a review from a team January 9, 2021 02:54
@crwilcox crwilcox requested a review from a team as a code owner February 18, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/python-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC Async Helper seems incompatible when using firestore emulator
2 participants