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

git ref got interpreted as number #4332

Closed
2 tasks
juliandm opened this issue Apr 4, 2024 · 1 comment
Closed
2 tasks

git ref got interpreted as number #4332

juliandm opened this issue Apr 4, 2024 · 1 comment

Comments

@juliandm
Copy link

juliandm commented Apr 4, 2024

Description

i tried to parse the following object (which symbolises a git ref)

'{"ref":"6653406e8512483ea41127ccecac9197afe273fe"}'
and it apparently tried to parse the ref as a number and not as string

[json.exception.out_of_range.406] number overflow parsing '6653406e8512483'

I guess it's a very rare case because it worked multiple times before and with this specific string it failed

Reproduction steps

Parse '{"ref":"6653406e8512483ea41127ccecac9197afe273fe"}'

Expected vs. actual results

Expected result is the object with the ref attribute which is a string

Minimal code example

No response

Error messages

[json.exception.out_of_range.406] number overflow parsing '6653406e8512483'

Compiler and operating system

Linux

Library version

1800

Validation

@juliandm
Copy link
Author

juliandm commented Apr 4, 2024

My code was accidentally trying to parse the ref value although it was just a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant