uburuntu / rawg

🎮 Async API wrapper for RAWG.io
https://rawg.io
33 stars 2 forks source link

Game not found #7

Open jorismi opened 1 year ago

jorismi commented 1 year ago

Hello and thank you for your good work.

I'm facing an issue using your wrapper. I try to get some infos about games with a call to api.games_read(id=name). But I get a 404 not found for some games despite finding the game on RAWG.

My exception is below :

Exception  Not Found ( 404 ) with the game  COCOON (Original name :  COCOON ) (404)
Reason: Not Found
HTTP response headers: <CIMultiDictProxy('Date': 'Tue, 08 Aug 2023 15:53:25 GMT', 'Content-Type': 'application/json', 'Content-Length': '23', 'Connection': 'keep-alive', 'Allow': 'GET, PATCH, HEAD, OPTIONS', 'path': 'api-game-detail', 'x-frame-options': 'SAMEORIGIN', 'Vary': 'Origin', 'Content-Language': 'en', 'api-user': '690029', 'CF-Cache-Status': 'DYNAMIC', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Y1Ft5Fc%2BZzIzVyG%2FaQiFCtErybf8x1236tpnP6RVLcUb4PKFoF2sAQ0m4DX0DT%2FmOMfGcEi3MYMUnIYRf2YJRcVOFp5tEvQYTkmH8SO9OrUC5n4KF2yAmNve%2BQPo"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Strict-Transport-Security': 'max-age=0; includeSubDomains; preload', 'Server': 'cloudflare', 'CF-RAY': '7f38ee9c39b832f4-EWR')>
HTTP response body: {"detail":"Not found."}

And the game on RAWG

image

Do you have an idea about this problem? Thank you for your time and your help.