Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

GraphQL pokémon sprites returns 404 status #146

Open
assiscs2 opened this issue Feb 13, 2023 · 2 comments
Open

GraphQL pokémon sprites returns 404 status #146

assiscs2 opened this issue Feb 13, 2023 · 2 comments

Comments

@assiscs2
Copy link

I was taking a look in my pokedex project and it seems that something is broken on retrieving the Pokémon sprites via GraphQL.

Here's the projects link: https://pokedex-react-topaz-zeta.vercel.app/

I'm pretty sure its not a problem from my side, since I haven't done any changes in this project for quite some time.

The console returns a 404 error: "Failed to load resource: the server responded with a status of 404 ()"
Print pokedex

@Naramsim
Copy link
Member

Yes, there's a problem in our GraphQL API. Currently we strip away https://raw.githubusercontent.com/PokeAPI/sprites/master/, so you have to manipulate the link.

You need to change /media/ to https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/

@assiscs2
Copy link
Author

assiscs2 commented Feb 15, 2023

@Naramsim, thanks for the reply!

I don't know if I'm doing it wrong, but it's still not working for me.

I have manipulated the link, but I still get the same result, are any of these two images below the correct changes?

Erro pokedex 1

Erro pokedex 2

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

No branches or pull requests

2 participants