Skip to content

why browser not loading? #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
onlineapps-cloud opened this issue Mar 27, 2025 · 9 comments
Open

why browser not loading? #506

onlineapps-cloud opened this issue Mar 27, 2025 · 9 comments

Comments

@onlineapps-cloud
Copy link

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

Image

Image

@onlineapps-cloud
Copy link
Author

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)

@theanuragg
Copy link
Contributor

theanuragg commented Mar 28, 2025

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

@onlineapps-cloud
Copy link
Author

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?

@theanuragg
Copy link
Contributor

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}

@onlineapps-cloud
Copy link
Author

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

@theanuragg
Copy link
Contributor

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 

@onlineapps-cloud
Copy link
Author

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

@theanuragg
Copy link
Contributor

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

@amhsirak
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants