Skip to content

bug: cannot start the example project #683

@NickKhalow

Description

@NickKhalow

Issue

Cannot run the example due the error. Arguments URL and TOKEN are passed. URL value starts with 'wss://' is used as the argument. I had some suspicious about the format, but we use websockets in production without any issues.

Reproduced on both MacOS and Windows.

Repro steps

  1. Download repository
  2. Go-to ./examples/play_from_disk
  3. Put LIVEKIT_URL and LIVEKIT_TOKEN env variables
  4. Launch normally by cargo run
  5. Error:
thread 'main' panicked at src\main.rs:135:10:
called `Result::unwrap()` on an `Err` value: Engine(Signal(RegionError("error sending request for url (https://dcl.livekit.cloud/settings/regions): error trying to connect: invalid URL, scheme is not http")))
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library\std\src\panicking.rs:697
   1: core::panicking::panic_fmt
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library\core\src\panicking.rs:75
   2: core::result::unwrap_failed
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library\core\src\result.rs:1732
   3: enum2$<core::result::Result<tuple$<livekit::room::Room,tokio::sync::mpsc::unbounded::UnboundedReceiver<enum2$<livekit::room::RoomEvent> > >,enum2$<livekit::room::RoomError> > >::unwrap
             at C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\result.rs:1137
   4: play_from_disk::main::async_block$0
             at .\src\main.rs:133
   5: tokio::runtime::park::impl$4::block_on::closure$0<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\park.rs:281
   6: tokio::runtime::coop::with_budget
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\coop.rs:107
   7: tokio::runtime::coop::budget
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\coop.rs:73
   8: tokio::runtime::park::CachedParkThread::block_on<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\park.rs:281
   9: tokio::runtime::context::blocking::BlockingRegionGuard::block_on<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\context\blocking.rs:66
  10: tokio::runtime::scheduler::multi_thread::impl$0::block_on::closure$0<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\scheduler\multi_thread\mod.rs:87
  11: tokio::runtime::context::runtime::enter_runtime<tokio::runtime::scheduler::multi_thread::impl$0::block_on::closure_env$0<enum2$<play_from_disk::main::async_block_env$0> >,enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error>,alloc
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\context\runtime.rs:65
  12: tokio::runtime::scheduler::multi_thread::MultiThread::block_on<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\scheduler\multi_thread\mod.rs:86
  13: tokio::runtime::runtime::Runtime::block_on<enum2$<play_from_disk::main::async_block_env$0> >
             at C:\Users\user\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.36.0\src\runtime\runtime.rs:350
  14: play_from_disk::main
             at .\src\main.rs:198
  15: core::ops::function::FnOnce::call_once<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error>,alloc::alloc::Global> > > (*)(),tuple$<> >
             at C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\play_from_disk.exe` (exit code: 101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions