Skip to content

panic inside while sending data #66

@gitstargazers

Description

@gitstargazers
panic: runtime error: index out of range [2] with length 2 [recovered]
	panic: runtime error: index out of range [2] with length 2

goroutine 3828 [running]:
encoding/json.(*encodeState).marshal.func1()
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:328 +0x6e
panic({0x1975d00, 0xc0004723c0})
	/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:838 +0x207
encoding/json.mapEncoder.encode({0xc0004ad428?}, 0xc000418280, {0x18ce9a0?, 0xc0002527f0?, 0x2?}, {0xd?, 0x0?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:800 +0x6c5
encoding/json.structEncoder.encode({{{0xc000f0e000?, 0x1004194?, 0xc00050eea0?}, 0xc00038e8a0?}}, 0xc000418280, {0x19a74a0?, 0xc000252780?, 0x0?}, {0x0, 0x1})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:761 +0x1f4
encoding/json.ptrEncoder.encode({0xc0004ad658?}, 0xc000418280, {0x18ef600?, 0xc000252780?, 0x18ef600?}, {0x90?, 0xd6?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:945 +0x25e
encoding/json.(*encodeState).reflectValue(0x18b6b60?, {0x18ef600?, 0xc000252780?, 0x24?}, {0x18?, 0xd7?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:360 +0x78
encoding/json.interfaceEncoder(0xc000418280, {0x18b6b60?, 0xc0000ae4d0?, 0x23?}, {0xa8?, 0xd7?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:716 +0xc8
encoding/json.structEncoder.encode({{{0xc0000ac6c0?, 0x1004194?, 0x1894980?}, 0xc00028a540?}}, 0xc000418280, {0x1914420?, 0xc0000ae4c0?, 0x8?}, {0x0, 0x1})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:761 +0x1f4
encoding/json.ptrEncoder.encode({0xc0004ad918?}, 0xc000418280, {0x18bc7a0?, 0xc0000ae4c0?, 0x18bc7a0?}, {0x8?, 0x0?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:945 +0x25e
encoding/json.(*encodeState).reflectValue(0x18b6b60?, {0x18bc7a0?, 0xc0000ae4c0?, 0x18ce9a0?}, {0x20?, 0x45?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:360 +0x78
encoding/json.interfaceEncoder(0xc000418280, {0x18b6b60?, 0xc000654528?, 0x22838e8?}, {0x60?, 0x95?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:716 +0xc8
encoding/json.structEncoder.encode({{{0xc000300480?, 0x1004194?, 0x1b?}, 0xc00028a420?}}, 0xc000418280, {0x1991480?, 0xc0006544d0?, 0x1?}, {0x0, 0x1})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:761 +0x1f4
encoding/json.ptrEncoder.encode({0xc00095ee00?}, 0xc000418280, {0x18bc920?, 0xc0006544d0?, 0x18bc920?}, {0xbe?, 0xce?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:945 +0x25e
encoding/json.(*encodeState).reflectValue(0xc0004adc68?, {0x18bc920?, 0xc0006544d0?, 0x0?}, {0x80?, 0xc3?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:360 +0x78
encoding/json.(*encodeState).marshal(0xc000317d40?, {0x18bc920?, 0xc0006544d0?}, {0xc8?, 0x13?})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/encode.go:332 +0xfa
encoding/json.(*Encoder).Encode(0xc0004add80, {0x18bc920, 0xc0006544d0})
	/opt/hostedtoolcache/go/1.18.10/x64/src/encoding/json/stream.go:206 +0x7e
github.com/microsoft/ApplicationInsights-Go/appinsights.telemetryBufferItems.serialize({0xc0002b2f80, 0x3, 0x0?})
	/home/runner/go/pkg/mod/github.com/microsoft/!application!insights-!go@v0.4.4/appinsights/jsonserializer.go:18 +0xdd
github.com/microsoft/ApplicationInsights-Go/appinsights.(*InMemoryChannel).transmitRetry(0xc000130540, {0xc0002b2f80, 0x3, 0x10}, 0x1, 0x0)
	/home/runner/go/pkg/mod/github.com/microsoft/!application!insights-!go@v0.4.4/appinsights/inmemorychannel.go:366 +0x67
github.com/microsoft/ApplicationInsights-Go/appinsights.(*inMemoryChannelState).send.func1({0xc0002b2f80?, 0xc0009be7d0?, 0x181b4ce?}, 0x40?, 0xc0009be5b0?)
	/home/runner/go/pkg/mod/github.com/microsoft/!application!insights-!go@v0.4.4/appinsights/inmemorychannel.go:289 +0x7b
created by github.com/microsoft/ApplicationInsights-Go/appinsights.(*inMemoryChannelState).send
	/home/runner/go/pkg/mod/github.com/microsoft/!application!insights-!go@v0.4.4/appinsights/inmemorychannel.go:287 +0x214

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions