Something went wrong. Try again later

Swystem

This user has not updated recently.

3 0 0 0
Forum Posts Wiki Points Following Followers

Swystem's forum posts

Avatar image for swystem
Swystem

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm having a similar issue, but I think you're using the wrong URL for your request; getting a single game should be:

"https://www.giantbomb.com/api/game/{gameId}/?api_key={API KEY}&format=json"

If this works for you, please let me know because when I use Axios to make this request it gives me a 404 error but Postman returns the expected result.

Avatar image for swystem
Swystem

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm currently working on my final project for my degree and I'm using the GiantBomb API for it. The artefact I'm making is a mobile app using React-Native and Expo, and I'm trying to get the data for a specific game using Axios to manage the requests. I have used Axios for the same thing in earlier locations in the app, and it's working for lists and searches, but when trying to access a specific game using its guid, it returns Error 404.

The Request URL used is as follows: "https://www.giantbomb.com/api/game/"+{gameId}+"/?api_key=5bc3563198ccc43a70e401cf8c0dcb1704e74e31&format=json"

The variable gameId has the right data in it, I know this for sure, but the request fails. Why does this happen? How do I fix it?