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

Bytes sometimes erroneously returned as string in API #784

Open
852Kerfunkle opened this issue Dec 7, 2021 · 1 comment
Open

Bytes sometimes erroneously returned as string in API #784

852Kerfunkle opened this issue Dec 7, 2021 · 1 comment
Assignees

Comments

@852Kerfunkle
Copy link

852Kerfunkle commented Dec 7, 2021

First, apologies if this isn't the correct repo to report this issue in.

I'm running into a problem when the bytes I'm storing are returned as a string by the API, I suppose because it kind of looks like a string.

Maybe a global option that allow some control over this behaviour could be nice to have. For now I'm just working around it.

Some examples:

Correctly returned as a hex string:
0000000000003c003c0047833c00c2c6
0000000000003c003c00c8823c00c7ca
0000000000003c003c00c0343c0046a3

"Incorrectly" returned as a string:
0000000000003c003c00385c3c003a66
0000000000003c003c0043733c004674
0000000000003c003c00450a3c003d1f
0000000000003c003c00372e3c003e30

edit

I just realised sometimes certain characters are missing from the string entirely, I'll try to give an example later.

@m-kus
Copy link
Member

m-kus commented Dec 8, 2021

Bcd tries to decode utf8 strings, maybe it is the case

@m-kus m-kus self-assigned this Dec 8, 2021
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

No branches or pull requests

2 participants