Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS Trigger fails with error #514

Closed
paulgrainger85 opened this issue Aug 7, 2024 · 1 comment · Fixed by #515
Closed

SQS Trigger fails with error #514

paulgrainger85 opened this issue Aug 7, 2024 · 1 comment · Fixed by #515
Assignees
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working

Comments

@paulgrainger85
Copy link

paulgrainger85 commented Aug 7, 2024

Describe the issue

Reproducer flow along with error message:

flow:

id: sqs
namespace: demo

tasks:
  - id: log_trigger
    type: io.kestra.plugin.core.log.Log
    message: "{{trigger.data}}"

triggers:
  - id: "realtime_trigger"
    type: io.kestra.plugin.aws.sqs.RealtimeTrigger
    accessKeyId: "{{ secret('AWS_SQS_ACCESS_KEY') }}"
    secretKeyId: "{{ secret('AWS_SQS_SECRET_KEY') }}"
    region: "eu-west-3"
    queueUrl: "{{ secret('AWS_SQS_QUEUE') }}"
    serdeType: STRING

Error

kestra-1    | 2024-08-07 16:00:11,325 WARN  WorkerThread flow.sqs.realtime_trigger [tenant: default] [namespace: demo] [flow: sqs] [trigger: realtime_trigger] [date: 2024-08-07T16:00:09.898Z] Trigger evaluation failed in the worker with error: throttlingBackoffStrategy must not be null.
kestra-1    | java.lang.NullPointerException: throttlingBackoffStrategy must not be null.
kestra-1    | 	at software.amazon.awssdk.utils.Validate.paramNotNull(Validate.java:156)
kestra-1    | 	at software.amazon.awssdk.retries.internal.BaseRetryStrategy.<init>(BaseRetryStrategy.java:65)
kestra-1    | 	at software.amazon.awssdk.retries.internal.DefaultStandardRetryStrategy.<init>(DefaultStandardRetryStrategy.java:31)
kestra-1    | 	at software.amazon.awssdk.retries.internal.DefaultStandardRetryStrategy$Builder.build(DefaultStandardRetryStrategy.java:100)
kestra-1    | 	at io.kestra.plugin.aws.sqs.AbstractSqs.lambda$asyncClient$0(AbstractSqs.java:63)
kestra-1    | 	at software.amazon.awssdk.utils.builder.SdkBuilder.applyMutation(SdkBuilder.java:61)
kestra-1    | 	at software.amazon.awssdk.core.client.builder.SdkClientBuilder.overrideConfiguration(SdkClientBuilder.java:51)
kestra-1    | 	at io.kestra.plugin.aws.sqs.AbstractSqs.asyncClient(AbstractSqs.java:55)
kestra-1    | 	at io.kestra.plugin.aws.sqs.RealtimeTrigger.lambda$publisher$4(RealtimeTrigger.java:146)
kestra-1    | 	at reactor.core.publisher.FluxCreate.subscribe(FluxCreate.java:97)
kestra-1    | 	at reactor.core.publisher.Flux.subscribe(Flux.java:8840)
kestra-1    | 	at reactor.core.publisher.Flux.blockLast(Flux.java:2816)
kestra-1    | 	at io.kestra.core.runners.WorkerTriggerRealtimeThread.doRun(WorkerTriggerRealtimeThread.java:55)
kestra-1    | 	at io.kestra.core.runners.AbstractWorkerThread.run(AbstractWorkerThread.java:57)

Environment

  • Kestra Version: v0.18.0
  • Operating System Docker (Mac M2)
@paulgrainger85 paulgrainger85 added bug Something isn't working area/plugin Plugin-related issue or feature request labels Aug 7, 2024
@tchiotludo tchiotludo transferred this issue from kestra-io/kestra Aug 7, 2024
@anna-geller
Copy link
Member

I was able to reproduce the issue:

[namespace: demo] [flow: sqs] [trigger: realtime_trigger] Type io.kestra.plugin.aws.sqs.RealtimeTrigger started
2024-08-07 18:15:29.143realtime_trigger[namespace: demo] [flow: sqs] [trigger: realtime_trigger] Type io.kestra.plugin.aws.sqs.RealtimeTrigger completed in 00:00:00.011
2024-08-07 18:15:29.116realtime_triggerjava.lang.NullPointerException: throttlingBackoffStrategy must not be null.
 at software.amazon.awssdk.utils.Validate.paramNotNull(Validate.java:156)
 at software.amazon.awssdk.retries.internal.BaseRetryStrategy.<init>(BaseRetryStrategy.java:65)
 at software.amazon.awssdk.retries.internal.DefaultStandardRetryStrategy.<init>(DefaultStandardRetryStrategy.java:31)
 at software.amazon.awssdk.retries.internal.DefaultStandardRetryStrategy$Builder.build(DefaultStandardRetryStrategy.java:100)
 at io.kestra.plugin.aws.sqs.AbstractSqs.lambda$asyncClient$0(AbstractSqs.java:63)
 at software.amazon.awssdk.utils.builder.SdkBuilder.applyMutation(SdkBuilder.java:61)
 at software.amazon.awssdk.core.client.builder.SdkClientBuilder.overrideConfiguration(SdkClientBuilder.java:51)
 at io.kestra.plugin.aws.sqs.AbstractSqs.asyncClient(AbstractSqs.java:55)
 at io.kestra.plugin.aws.sqs.RealtimeTrigger.lambda$publisher$4(RealtimeTrigger.java:146)
 at reactor.core.publisher.FluxCreate.subscribe(FluxCreate.java:97)
 at reactor.core.publisher.Flux.subscribe(Flux.java:8840)
 at reactor.core.publisher.Flux.blockLast(Flux.java:2816)
 at io.kestra.core.runners.WorkerTriggerRealtimeThread.doRun(WorkerTriggerRealtimeThread.java:55)
 at io.kestra.core.runners.AbstractWorkerThread.run(AbstractWorkerThread.java:57)

fhussonnois added a commit that referenced this issue Aug 7, 2024
This commit re-enables tests for SQS tasks

Fix: #514
fhussonnois added a commit that referenced this issue Aug 8, 2024
This commit re-enables tests for SQS tasks

Fix: #514
@github-project-automation github-project-automation bot moved this from Backlog to Done in Issues Aug 8, 2024
fhussonnois added a commit that referenced this issue Aug 8, 2024
This commit re-enables tests for SQS tasks

Fix: #514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants