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

Unknown Tag response to json error #57

Closed
spali opened this issue Apr 17, 2024 · 2 comments
Closed

Unknown Tag response to json error #57

spali opened this issue Apr 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@spali
Copy link
Owner

spali commented Apr 17, 2024

Reading unknown tag and marshal to json error:

TRAC[0000] read plain []byte{0xe3, 0xdc, 0x0, 0x11, 0x20, 0x17, 0x20, 0x66, 0x0, 0x0, 0x0, 0x0, 0xa8, 0x74, 0x58, 0x17, 0x8, 0x0, 0x7d, 0x2, 0x80, 0x1, 0x3, 0x1, 0x0, 0x0, 0x75, 0xfc, 0xe5, 0x38} 
TRAC[0000] read [{ Tag(25166461) UChar8 0 }]                        
error: json: error calling MarshalJSON for type main.JSONMessage: invalid character '2' looking for beginning of object key string

@docolli

@spali spali self-assigned this Apr 17, 2024
@spali spali added the bug Something isn't working label Apr 17, 2024
@spali
Copy link
Owner Author

spali commented Apr 17, 2024

current theory is, that marshal of tag which would return a string as key (known tag) returns a number for an unknown tag which does marshal to a number which is an invalid json key.

@spali
Copy link
Owner Author

spali commented Apr 17, 2024

Workaround is using -output json to prevent tags getting keys

@spali spali closed this as completed in 52222f7 Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant