401 Unauthorized on /users/ + /tracks/ #28

Closed
opened 2021-01-09 16:42:31 +00:00 by philipp · 1 comment
Owner

after approx. 5mins (access token expiry), loading the users or tracks page results in a 401 Unauthorized Error.

this issue occurs both on local dev as well as on the live system.

this is the current error dump:

XHRGEThttps://dev.lauf-fuer-kaya.de/api/users
[HTTP/2 401 Unauthorized 39ms]

    	
    name	"IllegalJWTError"
    message	"Your provided jwt could not be parsed."
    stack	"Error\n at IllegalJWTError.HttpError [as constructor] (/node_modules/.pnpm/routing-controllers@0.9.0-alpha.6_4ae0cf6eab4c30830de5e5acc43ca1c7/node_modules/routing-controllers/http-error/HttpError.js:31:23)\n at new UnauthorizedError (/node_modules/.pnpm/routing-controllers@0.9.0-alpha.6_4ae0cf6eab4c30830de5e5acc43ca1c7/node_modules/routing-controllers/http-error/UnauthorizedError.js:24:28)\n at new IllegalJWTError (/dist/errors/AuthError.js:21:9)\n at refresh (/dist/middlewares/authchecker.js:8…ode_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:335:12)\n at next (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:275:10)"

we might need to do some server side debugging/ combination of frontend+backend @niggl

after approx. 5mins (access token expiry), loading the `users` or `tracks` page results in a `401 Unauthorized Error`. this issue occurs both on local dev as well as on the live system. this is the current error dump: ``` XHRGEThttps://dev.lauf-fuer-kaya.de/api/users [HTTP/2 401 Unauthorized 39ms] name "IllegalJWTError" message "Your provided jwt could not be parsed." stack "Error\n at IllegalJWTError.HttpError [as constructor] (/node_modules/.pnpm/routing-controllers@0.9.0-alpha.6_4ae0cf6eab4c30830de5e5acc43ca1c7/node_modules/routing-controllers/http-error/HttpError.js:31:23)\n at new UnauthorizedError (/node_modules/.pnpm/routing-controllers@0.9.0-alpha.6_4ae0cf6eab4c30830de5e5acc43ca1c7/node_modules/routing-controllers/http-error/UnauthorizedError.js:24:28)\n at new IllegalJWTError (/dist/errors/AuthError.js:21:9)\n at refresh (/dist/middlewares/authchecker.js:8…ode_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:335:12)\n at next (/node_modules/.pnpm/express@4.17.1/node_modules/express/lib/router/index.js:275:10)" ``` we might need to do some server side debugging/ combination of frontend+backend @niggl
philipp added this to the Base-System milestone 2021-01-09 16:42:31 +00:00
philipp added the
bug
priority:high
help wanted
labels 2021-01-09 16:42:31 +00:00
niggl was assigned by philipp 2021-01-09 16:42:31 +00:00
philipp self-assigned this 2021-01-09 16:42:31 +00:00
philipp added the
confirmed
label 2021-01-09 16:43:19 +00:00
Owner

Works on the dev.lfk stage but not on localhost.
Reason: Cookies apparently aren't designed for tlds and localhost is a tld
Workaround: Call the frontend on 127.0.0.1 instead of localhost.

Works on the dev.lfk stage but not on localhost. Reason: Cookies apparently aren't designed for tlds and localhost is a tld Workaround: Call the frontend on 127.0.0.1 instead of localhost.
niggl closed this issue 2021-01-09 18:07:43 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lfk/frontend#28
No description provided.