wp-api-jwt-auth icon indicating copy to clipboard operation
wp-api-jwt-auth copied to clipboard

rest_no_route error message

Open R3ll36 opened this issue 4 years ago • 0 comments

Hi, can somebody please help me with this error?

This is my .htaccess file

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 </IfModule>

So, when i try to login i get the "rest_no_route" error message and in the console i get: Before Request >>> {"adapter": [Function xhrAdapter], "data": {"password": "prolocoappp", "username": "proloco"}, "headers": {"common": {"Accept": "application/json, text/plain, */*"}, "delete": {}, "get": {}, "head": {}, "patch": {"Content-Type": "application/x-www-form-urlencoded"}, "post": {"Content-Type": "application/x-www-form-urlencoded"}, "put": {"Content-Type": "application/x-www-form-urlencoded"}}, "maxBodyLength": -1, "maxContentLength": -1, "method": "post", "timeout": 0, "transformRequest": [[Function transformRequest]], "transformResponse": [[Function transformResponse]], "url": "https://prolocoragogna.it/prolocoapp/index.php/wp-json/jwt-auth/v1/token", "validateStatus": [Function validateStatus], "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN"} [Tue Apr 20 2021 10:33:45.827] LOG Error Response >>> [Error: Request failed with status code 404]

R3ll36 avatar Apr 20 '21 08:04 R3ll36