why browser not loading?
hi, i had this issue, my browser not loading with remote website: i get this errors:
i get this error in backend: JWT verification error: JsonWebTokenError: invalid signature
i modified this JWT token, beucause, when i want to run docker compose, i get error in JWT token have some illegal symbols (i think).
JWT verification error: JsonWebTokenError: invalid signature
at /app/node_modules/jsonwebtoken/verify.js:171:19
at getSecret (/app/node_modules/jsonwebtoken/verify.js:97:14)
at module.exports (/app/node_modules/jsonwebtoken/verify.js:101:10)
at requireSignIn (/app/server/src/middlewares/auth.ts:18:11)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)
JWT verification error: JsonWebTokenError: invalid signature
at /app/node_modules/jsonwebtoken/verify.js:171:19
at getSecret (/app/node_modules/jsonwebtoken/verify.js:97:14)
at module.exports (/app/node_modules/jsonwebtoken/verify.js:101:10)
at requireSignIn (/app/server/src/middlewares/auth.ts:18:11)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)
Hey @onlineapps-cloud , does the error occur during Docker Compose start? if yes, then variable issues yaml file If no then regenerate jwt do it again
when i tried to run docker with your example files i get this error:
Creation failed, please check whether the compose.yaml file format is correct:
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
time="2025-03-28T15:10:01-04:00" level=warning msg="The \"kLq7\" variable is not set. Defaulting to a blank string."
this is a part from JWT_SECRET=a9Z$kLq7^f03GzNw!bP9dH4xV6sT2yXl3O8vR@uYq3
how i can regenerate a valid JWT_SECRET?
you don't need to regenerate JWT, go yml file and remove $ sign if it still wouldn't work then put JWT_SECRET=a9Z$kLq7^f03GzNw!bP9dH4xV6sT2yXl3O8vR@uYq3 then in yml do these environment: - JWT_SECRET=${JWT_SECRET}
hi, where exactly in docker compose i need to put environment: - JWT_SECRET=${JWT_SECRET}
because when i put it on bottom of file i get error that yml is not consistent...
https://github.com/getmaxun/maxun/blob/develop/docker-compose.yml
backend:
#build:
#context: .
#dockerfile: server/Dockerfile
image: getmaxun/maxun-backend:latest
ports:
- "${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}"
env_file: .env
environment:
BACKEND_URL: ${BACKEND_URL}
JWT_SECERT: ${JWT_SECRET} //add this
yes, it's worked, but after creating with success a robot, after running it, i don't get parsed data, and robot not stopping after a hour
I have to go through the code of robot it's gonna take time Instead of me ask, @amhsirak can explain you better
@onlineapps-cloud we are actively looking into this and will get back asap