Skip to content
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

Could not fetch region settings: livekit #2470

Open
julianMobia opened this issue Feb 11, 2024 · 3 comments
Open

Could not fetch region settings: livekit #2470

julianMobia opened this issue Feb 11, 2024 · 3 comments

Comments

@julianMobia
Copy link

Describe the bug
Hello dear friends, im trying to create a video room but i have two erros:
1st: I run the server.js app, to get a valid token and it works great.
Server.js code:
image
execution
image

Then i run the client.js app and i get an error message: 18179.
image
execution
image

I check on google but no lucky...can you help me or send me instructions please
Server

  • Version: [node js 18.13.0]
  • Environment: [cloud]
  • any other information about your deployment setup

Client

  • SDK: [js]
  • Version: [0.x.x]

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
i tried genering the token by node.js and by the website

@davidzhao
Copy link
Member

The issue here is that your token has already expired when it's used against the server.

For testing, you can create a token with a longer expiration.

@julianMobia
Copy link
Author

Thank you for your quickly answer, i tried with a longer time token, but i have the same result

  1. i generate the token
    image
    image
    image
  2. i paste the token in the client.js file
    image
  3. run client.js
    image
    ERROR: ConnectionError: Could not fetch region settings: Unauthorized
    Is i missing something? what that region settings mean?

thank you for helping

@mahfuz0001
Copy link

I am also having the same issue

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