Cloud Functions Emulator can't get default credentials -
i'm trying test cloud function locally, , using functions emulator has been fine until tried adding datastore project. whenever start emulator, deploy, , call function test data via --file=test.json
, error datastore promise
error: (node:35048) unhandledpromiserejectionwarning: unhandled promise rejection (rejection id: 2): error: not load default credentials. browse https://developers.google.com/accounts/docs/application-default-credentials more information.
the problem i've tried multiple times, both beta , normal auth
modules, ie:
gcloud beta auth application-default login
and
gcloud auth application-default login
they both successful functions emulator still fails no matter what.
datastore version ^1.1.0 & google cloud sdk 170.0.1, beta 2017.03.24
Comments
Post a Comment