PokeAPI / pokeapi

The Pokémon API
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
4.18k stars 940 forks source link

Sprite images return a bad url #952

Closed Cova-ops closed 11 months ago

Cova-ops commented 11 months ago

I'm submitting a issue with the POKEAPI. (e.g. https://pokeapi.co/api/v2/pokemon/ditto) the URLs in the "sprites" section return incorrect values. You can verify this on the official website.

Example: Example

I suspect this issue is related to the following PR

The problem is that the URLs in the "sprites" section are incorrect, as shown below: "sprites": { "back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/132.png", "back_female": null, }

Naramsim commented 11 months ago

I'm very sorry. We rolled back to an earlier version.

caiangums commented 11 months ago

I was about to open an issue with the same reason 😅

Do you have a plan to fix this? Do you need any help @Naramsim?

CalebeCopello commented 11 months ago

It's happening here too, but not all the time, sometimes it returns the correct url, but sometimes it returns the "double" url

Naramsim commented 11 months ago

Hi, I deployed new code and purged the Cloudflare cache. Can you purge your local cache and retry?

Cova-ops commented 11 months ago

Hi, I have cleared my local cache and retested the website. It appears that the issue has been resolved, and everything is working as expected now.

Thanks for all the help. I'm closing the issue.