Skip to content

fix: router panics when invalid header format is returned by transformer - #6795

Merged
atzoum merged 1 commit into
release/1.70.xfrom
fix.routerNetworkPanic
Mar 23, 2026
Merged

atzoum merged 1 commit into
release/1.70.xfrom
fix.routerNetworkPanic

Conversation

@atzoum

@atzoum atzoum commented Mar 23, 2026 •

Copy link
Copy Markdown
Contributor

🔒 Scanned for secrets using gitleaks 8.30.0

Description

Recording HTTP 599 error code after unmarshal failure, instead of panicking in network, so that integrations team gets alerted.

"panic": "interface conversion: interface {} is map[string]interface {}, not string",
"stack":
goroutine 6313 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Notify.func1.1()
	/rudder-server/utils/crash/logger.go:35 +0x7c
sync.(*Once).doSlow(0x346aec771288?, 0x5e2d8?)
	/usr/local/go/src/sync/once.go:78 +0xdc
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:69
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Notify.func1()
	/rudder-server/utils/crash/logger.go:32 +0x84
panic({0x3c486e0?, 0x346aec7844b0?})
	/usr/local/go/src/runtime/panic.go:860 +0x12c
github.com/rudderlabs/rudder-server/router.(*netHandle).SendPost(0x346a8ffb0850, {0x4714440, 0x346aec778460}, {{0x346aec9f0cd8, 0x4}, {0x346aec9cce00, 0x68}, {0x0, 0x0}, {0x346aec9f0cdc, ...}, ...})
	/rudder-server/router/network.go:226 +0x1b94
github.com/rudderlabs/rudder-server/router.(*worker).process(0x346a76a456b0, {0x346aeaabb1e0, 0x1, 0x1})
	/rudder-server/router/worker.go:547 +0x27cc
github.com/rudderlabs/rudder-server/router.(*workerBatchLoop).runLoop.func2()
	/rudder-server/router/worker_batch_loop.go:47 +0x98
github.com/rudderlabs/rudder-server/router.(*workerBatchLoop).runLoop(0x346aec773e78)
	/rudder-server/router/worker_batch_loop.go:82 +0xdc
github.com/rudderlabs/rudder-server/router.(*worker).workLoop(0x346a76a456b0)
	/rudder-server/router/worker.go:232 +0x190
github.com/rudderlabs/rudder-server/router.newPartitionWorker.func3()
	/rudder-server/router/partition_worker.go:86 +0x20
github.com/rudderlabs/rudder-server/router.newPartitionWorker.Wrapper.func5()
	/rudder-server/utils/crash/default.go:47 +0x64
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93 +0x4c
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 5363
	/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x90

Linear Ticket

resolves INT-6128

Security

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

@atzoum
atzoum merged commit 6023648 into release/1.70.x Mar 23, 2026
102 of 105 checks passed
@atzoum
atzoum deleted the fix.routerNetworkPanic branch March 23, 2026 11:24
atzoum pushed a commit that referenced this pull request Mar 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.70.2](v1.70.1...v1.70.2)
(2026-03-23)


### Bug Fixes

* router panics when invalid header format is returned by transformer
([#6795](#6795))
([6023648](6023648))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
atzoum added a commit that referenced this pull request Mar 23, 2026
# Description

Syncing patch release v1.70.2 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
fix: snowpipe streaming remove authz error handling (#6777)
fix: router panics when invalid header format is returned by transformer
(#6795)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Akash Chetty <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Mar 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.71.0-rc.2](v1.70.0...v1.71.0-rc.2)
(2026-03-23)


### Bug Fixes

* router panics when invalid header format is returned by transformer
([#6795](#6795))
([910f421](910f421))
* snowpipe streaming remove authz error handling
([#6777](#6777))
([910f421](910f421))
* snowpipe streaming remove authz error handling
([#6777](#6777))
([5eaffb6](5eaffb6))


### Miscellaneous

* bump rudder-schemas to 0.11.0
([#6779](#6779))
([7c7296b](7c7296b))
* bump rudder-transformer to v1.126.2
([#6774](#6774))
([69692ac](69692ac))
* force release 1.71.0
([#6791](#6791))
([9cf21c7](9cf21c7))
* **jobsdb:** partition migration improvements
([#6772](#6772))
([57b1c70](57b1c70))
* sync release v1.70.0 to main branch
([#6775](#6775))
([74125a6](74125a6))
* ut mirror filtering
([#6776](#6776))
([fa4d1c4](fa4d1c4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Mar 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.71.0](v1.70.0...v1.71.0)
(2026-03-23)


### Bug Fixes

* router panics when invalid header format is returned by transformer
([#6795](#6795))
([910f421](910f421))
* snowpipe streaming remove authz error handling
([#6777](#6777))
([910f421](910f421))
* snowpipe streaming remove authz error handling
([#6777](#6777))
([5eaffb6](5eaffb6))


### Miscellaneous

* bump rudder-schemas to 0.11.0
([#6779](#6779))
([7c7296b](7c7296b))
* bump rudder-transformer to v1.126.2
([#6774](#6774))
([69692ac](69692ac))
* force release 1.71.0
([#6791](#6791))
([9cf21c7](9cf21c7))
* **jobsdb:** partition migration improvements
([#6772](#6772))
([57b1c70](57b1c70))
* sync release v1.70.0 to main branch
([#6775](#6775))
([74125a6](74125a6))
* ut mirror filtering
([#6776](#6776))
([fa4d1c4](fa4d1c4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants