newrelic / newrelic-fluent-bit-output

A Fluent Bit output plugin that sends logs to New Relic
Apache License 2.0
26 stars 42 forks source link

bug: panic: interface conversion: interface {} is []interface {} #126

Closed woehrl01 closed 1 year ago

woehrl01 commented 1 year ago

I receive the following error, which results in a stuck crash loop

panic: interface conversion: interface {} is []interface {}, not map[interface {}]interface {}goroutine 17 [running, locked to thread]:github.com/fluent/fluent-bit-go/output.GetRecord(0xc000048000, 0xc000071c80, 0xc000018240, 0x28, 0xc0000f8128)   /go/pkg/mod/github.com/fluent/fluent-bit-go@v0.0.0-20200729034236-b9c0d6a20853/output/decoder.go:87 +0x2f5main.FLBPluginFlushCtx(0x7f5ad3a3b040, 0x7f5ad2fc5000, 0x99e, 0x7f5ad3a40240, 0x7f5aff7c5b86) /go/src/github.com/newrelic/newrelic-fluent-bit-output/out_newrelic.go:59 +0x14bmain._cgoexpwrap_a6e139c81ab7_FLBPluginFlushCtx(0x7f5ad3a3b040, 0x7f5ad2fc5000, 0x55a17e0000099e, 0x7f5ad3a40240, 0x10000055a1) _cgo_gotypes.go:75 +0x49
jsubirat commented 1 year ago

Hey @woehrl01 , thank you for submitting this issue. Could you please provide us some reproduction steps so we can investigate this issue further? Thank you.

woehrl01 commented 1 year ago

@jsubirat Unfortunately, I have no idea where this error is coming from and how this was produced. I just wanted it to share in the case someone else might experienced that, too.

jsubirat commented 1 year ago

The line that appears mentioned in your stack trace is this one, which corresponds to us calling the fluent-bit-go library with a Fluent Bit decoder also provided by this same library. Therefore, this error is purely originating in the fluent-bit-go library, and as such, I'd kindly ask you to submit an issue in that repository. Thank you for your understanding.

jsubirat commented 1 year ago

Closing the issue since it doesn't seem related to this repo. Please @woehrl01 don't hesitate to open a new one if I happen to be wrong about the problem origin!

woehrl01 commented 1 year ago

Thanks @jsubirat!