maxun icon indicating copy to clipboard operation
maxun copied to clipboard

why browser not loading?

Open onlineapps-cloud opened this issue 9 months ago • 9 comments

hi, i had this issue, my browser not loading with remote website: i get this errors:

Image

Image

onlineapps-cloud avatar Mar 27 '25 16:03 onlineapps-cloud

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)

onlineapps-cloud avatar Mar 27 '25 17:03 onlineapps-cloud

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

theanuragg avatar Mar 28 '25 18:03 theanuragg

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?

onlineapps-cloud avatar Mar 28 '25 19:03 onlineapps-cloud

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}

theanuragg avatar Mar 28 '25 19:03 theanuragg

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...

onlineapps-cloud avatar Mar 29 '25 07:03 onlineapps-cloud

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 

theanuragg avatar Mar 29 '25 10:03 theanuragg

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

Image

onlineapps-cloud avatar Mar 29 '25 18:03 onlineapps-cloud

I have to go through the code of robot it's gonna take time Instead of me ask, @amhsirak can explain you better

theanuragg avatar Mar 29 '25 18:03 theanuragg

@onlineapps-cloud we are actively looking into this and will get back asap

amhsirak avatar Apr 11 '25 13:04 amhsirak