Firebase-tools: Accessing Firestore emulator from the Functions emulator crashes

Created on 15 Jun 2019  路  7Comments  路  Source: firebase/firebase-tools

[REQUIRED] Environment info

firebase-tools: 7.0.0
Platform: macOS 10.14.6
Node.js 10.15.3

[REQUIRED] Test case

https://github.com/aputinski/firebase-tools-test-case

[REQUIRED] Expected behavior

Accessing Firestore emulator from the Functions emulator should not crash.

[REQUIRED] Actual behavior

Function crashes with the following error message:

Error: Getting metadata from plugin failed with error: this.channel.credentials._getCallCredentials is not a function
emulator-suite firestore functions

Most helpful comment

@aputinski it's merged and will be part of the next patch release. No promises on timeline but we seem to do one of those almost every week.

All 7 comments

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@aputinski thanks for filing the issue with a detailed test case! Let me see if I can figure out what's going on.

From what I noticed, this happens in [email protected] but not [email protected] and the error comes from the @grpc/grpc-js module.

@ryanmtaylor thanks that makes sense actually. We have code to try and detect your dependencies and stub out some grpc code, I guess we got it wrong for grpc-js.

This turned out to be a simple fix, thanks for making it so clear!

Thanks for the quick fix! Any idea when this fix will be published?

@aputinski it's merged and will be part of the next patch release. No promises on timeline but we seem to do one of those almost every week.

Was this page helpful?
0 / 5 - 0 ratings