Closed scarolan closed 3 years ago
Cloudevent functions are only used for .NET and ruby. It looks like you are using node.
Try event instead of cloudevent.
Thanks Grant. I was confused by the note on this page:
https://github.com/GoogleCloudPlatform/functions-framework#specification-summary
Note: SIGNATURE_TYPE: event supports legacy, non-CloudEvent events. Support for these event formats are not required for Function Frameworks.
Anyway I'm glad to hear you are moving toward support for the industry standard cloudevent format. We can close this issue.
I'm running a function locally using
--signature-type=cloudevent
and I attempted to send sample PubSub data into it per the docs:https://cloud.google.com/functions/docs/running/calling#background_functions
The error I get is below. The code works fine (including the callback) if I deploy it to Google Cloud Functions.
Here is how my callback looks inside the function: