I am getting the following error from the Firebase logs once the getCloudIoTClient() part my function runs:
typeerror: Cannot read property 'getApplicationDefault' of undefined at Promise (/srv/index.js:98:21) at new Promise () at getCloudIoTClient (/srv/index.js:97:10) at exports.updateConfig.functions.database.ref.onUpdate (/srv/index.js:58:5) at cloudFunctionNewSignature (/srv/node_modules/firebase-functions/lib/cloud-functions.js:109:23) at /worker/worker.js:726:24 at at process._tickDomainCallback (internal/process/next_tick.js:228:7)
Any insight as to why this may be happening? I have customized the updateDeviceConfig function to work with the RealTime Database and my own data set, but I don't see why that would the source of the problem.
I am getting the following error from the Firebase logs once the getCloudIoTClient() part my function runs:
Any insight as to why this may be happening? I have customized the updateDeviceConfig function to work with the RealTime Database and my own data set, but I don't see why that would the source of the problem.