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

fix: runtime error: slice bounds out of range [:-1] #2932

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

fracasula
Copy link
Collaborator

@fracasula fracasula commented Feb 2, 2023

Description

Fixing the following error:

runtime error: slice bounds out of range [:-1]

Stack trace

BugsnagNotify.func1.1 in /rudder-server/utils/misc/misc.go 1207
(*Once).doSlow in sync/once.go 74
BugsnagNotify.func1 in /rudder-server/utils/misc/misc.go 1196
gopanic in runtime/panic.go 884
goPanicSliceAcap in runtime/panic.go 139
(*batchWebhookTransformerT).batchTransformLoop in /rudder-server/gateway/webhook/webhook.go 330
Setup.func1 in /rudder-server/gateway/webhook/setup.go 67
WithBugsnag.func1 in /rudder-server/utils/misc/misc.go 1217
(*Group).Go.func1 in /go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go 75

Squadcast incident

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@fracasula fracasula merged commit 07dd59e into release/1.5.x Feb 2, 2023
@fracasula fracasula deleted the fix.sliceRange branch February 2, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants