Open yurifedoseev opened 3 weeks ago
The source of the issue is that go.mod
and go.sum
files are excluded in .gcloudignore.functions
. A couple years ago it wasn't possible to deploy vendor
dependencies together with go.mod
.
I've removed this files from .gcloudignore.functions
and it solved the error.
Looks like the build process adds a very old version of github.com/GoogleCloudPlatform/functions-framework-go
if go.mod is missing (even with uploading go vendor)
Hello, I'm migrating an existing Gen1 Firestore Trigger to Gen2 via this tutorial https://cloud.google.com/functions/docs/calling/cloud-firestore
The gen2 function is deployed successfully however it fails on parsing an incoming request before even passing the data to the handler. I see in the logs:
The firestore document itself is a regular doc with sub-objects and with an array field. I've tried to simplify the doc just to be a plain map: the result is the same.
The same GEN 1 function is working fine with no issue.
Deployment:
replace
directive ingo.mod
The function is registered as in the example:
I see
register MyFuncas a cloud event
message in the logs on runtime start