kestra-io / plugin-gcp

Apache License 2.0
9 stars 10 forks source link

`io.kestra.plugin.gcp.pubsub.Consume` example throws `NullPointerException` #412

Closed wrussell1999 closed 3 months ago

wrussell1999 commented 4 months ago

Expected Behavior

Trying to use the example on https://kestra.io/plugins/plugin-gcp/tasks/pubsub/io.kestra.plugin.gcp.pubsub.consume to consume messages from a Google PubSub topic.

Actual Behaviour

With the topic, serviceAccount and projectId set, it still throws a NullPointerException with no clear indication on what the error is/

Steps To Reproduce

id: consume_pubsub
namespace: company.team

tasks:
  - id: "consume"
    type: "io.kestra.plugin.gcp.pubsub.Consume"
    topic: test-topic
    projectId: "snappy-nomad-422714-t8"
    maxRecords: 10
    serviceAccount: "{{ secret('GOOGLE_SA') }}"

Environment Information

Example flow

No response

smunteankestra commented 4 months ago

reproducing

image
loicmathieu commented 3 months ago

subscription is mandatory, I'll add a check for that and update the example