You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My cloud function isn't able to write to the database. When I run it on my local machine I am able to write the objects to Firestore. But when I run the cloud function, it correctly processes the CSV until the moment where I try to wrote it to the database. My Code:
Were you able to successfully deploy your functions?
Yes, I am able to deploy the function. Funnily if I do the same thing for a JSON, it works. But here only for exporting a CSV it doesn't.
I also got this error here sometimes related. Sometimes also no error shows up and it is just stuck forever and doesn't finish.
Before that also it sometimes timed out:
2020-04-18 15:12:04.313 PDT
extractCrawledDataToFirestore
1135009007131339
Details: { Error: 14 UNAVAILABLE: No connection established at Object.callErrorFromStatus (/srv/node_modules/@grpc/grpc-js/build/src/call.js:30:26) at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client.js:174:52) at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:340:141) at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:303:181) at Http2CallStream.outputStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:114:27) at Http2CallStream.maybeOutputStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:153:22) at Http2CallStream.endCall (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:140:18) at Http2CallStream.cancelWithStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:441:14) at ChannelImplementation.tryPick (/srv/node_modules/@grpc/grpc-js/build/src/channel.js:214:32) at Object.updateState (/srv/node_modules/@grpc/grpc-js/build/src/channel.js:82:26) code: 14, details: 'No connection established', metadata: Metadata { internalRepr: Map {}, options: {} } }
Expand all | Collapse all
{
insertId: "000002-bc1fa649-2e31-43d7-8a28-2614ffc8efed"
labels: {…}
logName: "projects/leadsource-e5086/logs/cloudfunctions.googleapis.com%2Fcloud-functions"
receiveTimestamp: "2020-04-18T22:12:10.199384682Z"
resource: {…}
severity: "ERROR"
textPayload: "Details: { Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (/srv/node_modules/@grpc/grpc-js/build/src/call.js:30:26)
at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client.js:174:52)
at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:340:141)
at Object.onReceiveStatus (/srv/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:303:181)
at Http2CallStream.outputStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:114:27)
at Http2CallStream.maybeOutputStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:153:22)
at Http2CallStream.endCall (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:140:18)
at Http2CallStream.cancelWithStatus (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:441:14)
at ChannelImplementation.tryPick (/srv/node_modules/@grpc/grpc-js/build/src/channel.js:214:32)
at Object.updateState (/srv/node_modules/@grpc/grpc-js/build/src/channel.js:82:26)
code: 14,
details: 'No connection established',
metadata: Metadata { internalRepr: Map {}, options: {} } }"
timestamp: "2020-04-18T22:12:04.313Z"
trace: "projects/leadsource-e5086/traces/e61aed435bc0fee717254f506f00e605"
}
The text was updated successfully, but these errors were encountered:
Hey @mattk90, sorry to hear that you're having this issue. This looks to be very similar to #568 - the underlying issue there looked to be a version disagreement related to '@grpc/grpc-js'. Could you check your package-lock.json, and make sure that any references to @grpc/grpc-js" are up to date?
Hey @mattk90. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Related issues
[REQUIRED] Version info
node::
v13.10.1 (local machine)
firebase-functions:
"firebase-functions": "^3.6.0"
firebase-tools:
firebase-admin:
"firebase-admin": "^8.10.0"
[REQUIRED] Steps to reproduce
My cloud function isn't able to write to the database. When I run it on my local machine I am able to write the objects to Firestore. But when I run the cloud function, it correctly processes the CSV until the moment where I try to wrote it to the database. My Code:
[REQUIRED] Expected behavior
It should write the
objectWithDate
to Firestore.[REQUIRED] Actual behavior
The Cloud function doesn't continue or stop. It then fails after some time with this output:
It Logs Viewer the details are:
Were you able to successfully deploy your functions?
Yes, I am able to deploy the function. Funnily if I do the same thing for a JSON, it works. But here only for exporting a CSV it doesn't.
I also got this error here sometimes related. Sometimes also no error shows up and it is just stuck forever and doesn't finish.
Before that also it sometimes timed out:
The text was updated successfully, but these errors were encountered: