Skip to content

JSON API: The route oauth\/token could not be found #2

@mrmedia

Description

@mrmedia

After my own upgrade on the whole package I still have a problem to put the JSON API (PRO) into operation:

It permanently says

{"jsonapi":{"version":"1.0"},"errors":[{"detail":"The route oauth\/token could not be found.","status":"400","title":"Bad Request"}]}

Even if I fire the request with my own client and the bearer from https://documenter.getpostman.com/view/8138626/T1DiFzku#jsonapi
the API response are still the same.

POST /api/v2/login HTTP/1.1
Host: localhost:8000
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyIiwianRpIjoiNjNmZjk2ODUxMGE2YzQ1MjJlYWNlMTUyN2I5YzE4Y2RiYWUwMjY5MmVjOGFkMjM2YWE5ZWFhMjcwYjVlODYzMzZjY2ViODI1NmRjZmNiOTgiLCJpYXQiOjE1ODY5NTYzODksIm5iZiI6MTU4Njk1NjM4OSwiZXhwIjoxNjE4NDkyMzg5LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Wg6y5GlkOzzeotv0sKIz2qGitNo5C4Niky3bzfIYa6amg0LabM8EHt7pZAklE-eJa0b4UY0-vag1WQuQJFDmoMzEMQfZcIZoTdty5-sGVvzy81RZfnN__i7Bd7VSDFevFHJRvvSn3QG-0woqBTFxd14Hwj6GjwWiDtnJtOtrQ3ylFvQ98zOz0LxcnU3FKALXx8loTO_ttIUcLZffHGmD6TsxAH0v70QSnDNVtcYmY30j7TCjcltuAVaeq3ZFcLQ2R4tvpAfPr-CFjvhWp59JS9qM_wgOA-WNlYIB5buxWEMDDcgK3q2sWgCzNGmEgtpa-EU3WLn-ifzOOh7XrBXpJXdNyQo7mYNzjU6jDnER-ksQ3V8DcpYf0oC2nrfrsOdfr02F1FboSRhuuSGa-yZE-t4urkgp5GkRNSyDde-cVyLwvo_PMnFC_zcANbO5C2K2Kb6WHv4y7zk8aqNmT3eAQMdZK5jMCf3nryjF5X-bTxZRRCmEOBcUG23AZap9UP6Rduwq2sUFqFT9BIJaBTQPkpHAFdbyusZntrKS1C8AKNgvdqM5NVzeZrEyPDJRkVsG7_yb8u53Ad6jEyhOWGte4vqACbDgAdMp2qQbQN9Rk0LjgjIvrFMg2nkivyT_HPq0VFIzz8bzuvCxkPcJS9eNF6ZqnigiVIKreAuCT3XC7yg
{
    "data": {
        "type": "token",
        "attributes": {
            "email": "[admin@jsonapi.com](mailto:admin@jsonapi.com)",
            "password": "secret"
        }
    }
}

Do you have any hint for me what I’m doing wrong?
If I fire the call to creative-tim’s API the response is fine! So surely something is missing on my side?

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