br-g / openf1

OpenF1 API - Real-time and historical Formula 1 data
Other
399 stars 22 forks source link

API method drivers NumberFormatException 🥺 #35

Closed freelanxer closed 7 months ago

freelanxer commented 8 months ago

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 commented 8 months ago

Thanks for reporting this. I will have a look!

br-g commented 7 months ago

Fixed!