Closed LuziferSenpai closed 3 years ago
Hi, let me understand.
Do you want to add a .catch()
immediately after the .fetch()
?
Isn't it already there?
But it doesnt retry the fetch without the / at the end
Ahh, you want the retry! Now I understand
Yea, because of I get ALOT of errors that it cant fetch the url with / at the end, when I then open it, it errors too, but when I remove the / it works.
I can think about it. I don't have much time though. Don't expect something quick from my side
Proposed a PR for it. #25
I'm experiencing this issue again, where dropping the slash fixes it. It occurs specifically at this URL https://pokeapi.co/api/v2/pokemon/218/
but not any URL before index 218.
hmm, by browsing the URL without the final /
you see something ?
Via the wrapper I do get an object corresponding to the correct data, but if I do not then I simply get ''
. Browsing through the browser has the JSON display.
Hey,
it would be nice if there would be a catch after the first fetch, that excludes the / at the end of the fetch url.
Because that causes problems for me since the first minute.
Greetz,
Luzifer