Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

fix: patch emulator channel to be created accordingly#288

Merged
crwilcox merged 4 commits into
googleapis:masterfrom
lidizheng:patch-emulator-channel
Feb 18, 2021
Merged

fix: patch emulator channel to be created accordingly#288
crwilcox merged 4 commits into
googleapis:masterfrom
lidizheng:patch-emulator-channel

Conversation

@lidizheng

Copy link
Copy Markdown
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 force-pushed the patch-emulator-channel branch from 5b7990b to e3bbb2f Compare January 9, 2021 02:54
@lidizheng lidizheng changed the title fix: patch emulator channel to be created properly 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
@BenWhitehead BenWhitehead requested a review from crwilcox January 11, 2021 18:39
@lidizheng lidizheng force-pushed the patch-emulator-channel branch from f90bda8 to e152dcb Compare January 13, 2021 18:10
@crwilcox crwilcox requested a review from a team February 18, 2021 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore Issues related to the googleapis/python-firestore API. cla: yes This human has signed the Contributor License Agreement.

2 participants