Fix local development with Pub/Sub Emulator
See original GitHub issueHi there,
Currently the dotnet functions framework doesn’t seem to work with the pubsub emulator, due to I believe the same issue as with other functions framework implementations (https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/272).
I’ve just hit this, as I’m receiving an error that isn’t occurring when the function runs against real pub/sub.
[Google.Cloud.Functions.Framework.CloudEventAdapter] [fail] Event is malformed; does not contain a payload, or the event ID is missing.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Testing apps locally with the emulator - Cloud Pub/Sub
To develop and test your application locally, you can use the Pub/Sub emulator, which provides local emulation of the production Pub/Sub service.
Read more >Test with the Pub/Sub emulator - Cloud Functions
You can test functions locally before you deploy them, by using Functions Framework in conjunction with the Pub/Sub emulator.
Read more >Can't seem to get local emulator working with Node.js - ...
1 Answer 1 ... before you start your Node application. The env-init command will export an environment variable ( PUBSUB_EMULATOR_HOST ) that will ......
Read more >How to use Google Pub/Sub emulator locally to test ...
Using and testing the Google Pub/Sub emulator The first thing you need to do is clone the GitHub repository https://github.com/googleapis/ ...
Read more >Running Google Pub/Sub locally - Magnus Wahlstrand
We need to point the pubsub.Client to our emulator. For this purpose, pubsub.NewClient uses a magic environment variable PUBSUB_EMULATOR_HOST .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll look at this when I’m back at work in January.
@gkinsman: I’ve now added support for this in the Functions Framework, but we’re not going to release until #239 has been resolved. (Your input into that discussion would be welcome, by the way.)