PokeAPI / pokedex

PokeAPI's fork for adding gen-8 data.
https://github.com/PokeAPI/pokedex/tree/master-pokeapi/pokeapi
MIT License
43 stars 38 forks source link

GraphQL pokémon sprites returns 404 status #146

Open assiscs2 opened 1 year ago

assiscs2 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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