[GH-ISSUE #66] thread '<unnamed>' panicked at 'called Result::unwrap() #43

Closed
opened 2026-02-28 14:46:34 +03:00 by kerem · 13 comments
Owner

Originally created by @tamert on GitHub (Oct 15, 2019).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/66

thread '' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:999:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

Originally created by @tamert on GitHub (Oct 15, 2019). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/66 thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:999:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
kerem closed this issue 2026-02-28 14:46:34 +03:00
Author
Owner

@haitech commented on GitHub (Oct 15, 2019):

Getting similar error.
Seems like the http-server is not running?

On osx 10.14.4, installed with brew

 ~  spt
Opened https://accounts.spotify.com/authorize?scope=playlist-read-private%20user-library-modify%20user-library-read%20user-modify-playback-state%20user-read-currently-playing%20user-read-playback-state%20user-read-private%20user-read-recently-played&client_id=XYZ&response_type=code&state=XYZ&redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback& in your browser
Enter the URL you were redirected to:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:999:5
stack backtrace:
   0: std::panicking::default_hook::{{closure}}
   1: std::panicking::default_hook
   2: std::panicking::rust_panic_with_hook
   3: std::panicking::continue_panic_fmt
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: spt::redirect_uri::redirect_uri_web_server
   8: __rust_maybe_catch_panic
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}
  10: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
  11: std::sys::unix::thread::Thread::new::thread_start
  12: _pthread_body
  13: _pthread_start

Spotify auth failed
<!-- gh-comment-id:542120065 --> @haitech commented on GitHub (Oct 15, 2019): Getting similar error. Seems like the http-server is not running? On osx 10.14.4, installed with brew ``` ~ spt Opened https://accounts.spotify.com/authorize?scope=playlist-read-private%20user-library-modify%20user-library-read%20user-modify-playback-state%20user-read-currently-playing%20user-read-playback-state%20user-read-private%20user-read-recently-played&client_id=XYZ&response_type=code&state=XYZ&redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback& in your browser Enter the URL you were redirected to: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:999:5 stack backtrace: 0: std::panicking::default_hook::{{closure}} 1: std::panicking::default_hook 2: std::panicking::rust_panic_with_hook 3: std::panicking::continue_panic_fmt 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: spt::redirect_uri::redirect_uri_web_server 8: __rust_maybe_catch_panic 9: core::ops::function::FnOnce::call_once{{vtable.shim}} 10: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once 11: std::sys::unix::thread::Thread::new::thread_start 12: _pthread_body 13: _pthread_start Spotify auth failed ```
Author
Owner

@haitech commented on GitHub (Oct 15, 2019):

Got it to work with running sudo spt. And then after spt (without sudo) worked.

<!-- gh-comment-id:542122778 --> @haitech commented on GitHub (Oct 15, 2019): Got it to work with running `sudo spt`. And then after `spt` (without sudo) worked.
Author
Owner

@tamert commented on GitHub (Oct 15, 2019):

i am waiting for a very long time but not response

<!-- gh-comment-id:542126793 --> @tamert commented on GitHub (Oct 15, 2019): i am waiting for a very long time but not response
Author
Owner

@tamert commented on GitHub (Oct 15, 2019):

Screen Shot 2019-10-15 at 12 35 22

<!-- gh-comment-id:542128053 --> @tamert commented on GitHub (Oct 15, 2019): ![Screen Shot 2019-10-15 at 12 35 22](https://user-images.githubusercontent.com/1997933/66820022-964fb280-ef48-11e9-8baa-1796b00ad522.png)
Author
Owner

@tigrato commented on GitHub (Oct 15, 2019):

@tamert copy the url and paste into the terminal

<!-- gh-comment-id:542129316 --> @tigrato commented on GitHub (Oct 15, 2019): @tamert copy the url and paste into the terminal
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

Sorry about this. Something must be going wrong with the local webserver on first set up.

Will investigate.

<!-- gh-comment-id:542153756 --> @Rigellute commented on GitHub (Oct 15, 2019): Sorry about this. Something must be going wrong with the local webserver on first set up. Will investigate.
Author
Owner

@tamert commented on GitHub (Oct 15, 2019):

@tamert copy the url and paste into the terminal

:) yes i see now .. i was couldnt see because i just focus error

<!-- gh-comment-id:542155057 --> @tamert commented on GitHub (Oct 15, 2019): > @tamert copy the url and paste into the terminal :) yes i see now .. i was couldnt see because i just focus error
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

Did you install via brew and running on macOS?

Or are you on linux and installed via cargo?

<!-- gh-comment-id:542158245 --> @Rigellute commented on GitHub (Oct 15, 2019): Did you install via `brew` and running on macOS? Or are you on linux and installed via `cargo`?
Author
Owner

@abusch commented on GitHub (Oct 15, 2019):

Seeing this as well on Linux (Arch), spt installed via cargo. It opens up a web browser, then panics with the error above.

<!-- gh-comment-id:542159551 --> @abusch commented on GitHub (Oct 15, 2019): Seeing this as well on Linux (Arch), `spt` installed via `cargo`. It opens up a web browser, then panics with the error above.
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

I know the issue, will create fix shortly.

<!-- gh-comment-id:542165990 --> @Rigellute commented on GitHub (Oct 15, 2019): I know the issue, will create fix shortly.
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

Apologies once again, the fix is here github.com/Rigellute/spotify-tui@ca79472fa2 and is released to brew and cargo, you can now update.

<!-- gh-comment-id:542172395 --> @Rigellute commented on GitHub (Oct 15, 2019): Apologies once again, the fix is here https://github.com/Rigellute/spotify-tui/commit/ca79472fa253025152c76c0b53dce9437fc18fd2 and is released to brew and cargo, you can now update.
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

Looks like this is only fixed for macOS, reopening.

<!-- gh-comment-id:542179763 --> @Rigellute commented on GitHub (Oct 15, 2019): Looks like this is only fixed for macOS, reopening.
Author
Owner

@Rigellute commented on GitHub (Oct 15, 2019):

Latest release 0.6.2 now finally contains the fix 👍

<!-- gh-comment-id:542200362 --> @Rigellute commented on GitHub (Oct 15, 2019): Latest release `0.6.2` now finally contains the fix 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#43
No description provided.