Closed Steffi3rd closed 1 year ago
Having exact same issue. /token endpoint returns
{ "code": "rest_no_route", "message": "No route was found matching the URL and request method", "data": { "status": 404 } }
Same error Here mate, any solution as of now?
Hi. Try this POST wp-json/jwt-auth/v1/token. Version 1.2.6,
You can call wp-json/ and in the response you can found all available namespaces. Hope it can help
Try disabling and reinstall plugin.
I had this issue when sending GET
requests, sending POST
resolved it for me.
Same issue here, any solution?
Same issue here, any solution?
Same issue here, Any solution?
I am trying POST request, but still getting the same error
I was struggling for a while with this and even though I was using POST
to make the request I was still having issues.
What solved it for me is having to write https://
before my URL. Previously I was using the URL only and I was getting rest_no_route
while I had written the .htaccess
rules according to the documentation and also restart my server.
Also make sure you specify the URL correctly (see output of /wp-json for all valid JSON URLs)
So I tried https://mydomain.com/wp-json/jwt-auth/v1/token but instead I had to use https://www.mydomain.com/wp-json/jwt-auth/v1/token (notice the added www.
at the start)
@LordSimal thanks a lot. That also fixed it for me!
boa noite, para mim o erro era um espaço a mais no final da URL ("/wp-json/jwt-auth/v1/token ") de token removi o espaço e funcionou, outra coisa que fiz mas não sei se fez diferença, foi fazer as configurações primeiro e depois ativar o plugin, na alteração do .htaccess fiz em 2 arquivos, na pasta "public_html" na raiz de todos os domínios e no .htaccess no domínio da API. estou usando Hostgator com múltiplos domínios
Hello guys,
I'm using this plugin for a while in development, but now I'm in production and it doesn't work.
Every endpoint works except this :
wp-json/jwt/v1/token
wp-json
OKwp-json/jwt/v1
OKwp-json/jwt/v1/token
NOKwp-json/myApp/v2
OKwp-json/myApp/v2/*
OKI have this response :
My htaccess is already set up
I also add my
JWT_AUTH_SECRET_KEY
What else can I do to fix this please?