Skip to content

Some endpoints only return OK when a trailing slash is in the URL? #1286

@jonbarrow

Description

@jonbarrow

I have a script that goes through the https://pokeapi.co/api/v2/pokemon endpoint, and gets some metadata about each Pokemon by using the url field of each result. This field always has a trailing /, which seems to have issues as of recently? Some Pokemon, such as Chlorophyll, return just the string OK when there is a trailing slash. I thought maybe I was being rate-limited, but removing the slash makes it work? This also only happens on some Pokemon (IDs 1-186 did not have this issue)

This was not an issue a few weeks ago, I'm not really sure when this was introduced

Steps to Reproduce:

  1. Visit https://pokeapi.co/api/v2/pokemon/187 and see the data
  2. Visit https://pokeapi.co/api/v2/pokemon/187/ and see just OK

Screenshots:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions