question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix local development with Pub/Sub Emulator

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jskeetcommented, Dec 26, 2021

I’ll look at this when I’m back at work in January.

0reactions
jskeetcommented, Feb 16, 2022

@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.)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found