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

API method drivers NumberFormatException 🥺 #35

Closed
freelanxer opened this issue Mar 23, 2024 · 2 comments
Closed

API method drivers NumberFormatException 🥺 #35

freelanxer opened this issue Mar 23, 2024 · 2 comments

Comments

@freelanxer
Copy link

Field "team_colour" should be hex string, but it is '5.2e+253' in team Kick Sauber

API request like this:

https://api.openf1.org/v1/drivers?session_key=9484

Result:

{
    "session_key": 9484,
    "meeting_key": 1231,
    "broadcast_name": "G ZHOU",
    "country_code": "CHN",
    "first_name": "Guanyu",
    "full_name": "ZHOU Guanyu",
    "headshot_url": "https://media.formula1.com/d_driver_fallback_image.png/content/dam/fom-website/drivers/G/GUAZHO01_Guanyu_Zhou/guazho01.png.transform/1col/image.png",
    "last_name": "Zhou",
    "driver_number": 24,
    "team_colour": 5.2e+253,
    "team_name": "Kick Sauber",
    "name_acronym": "ZHO"
}
@br-g
Copy link
Owner

br-g commented Mar 29, 2024

Thanks for reporting this. I will have a look!

@br-g
Copy link
Owner

br-g commented Apr 19, 2024

Fixed!

@br-g br-g closed this as completed Apr 19, 2024
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

Successfully merging a pull request may close this issue.

2 participants