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

JavaScript interpreter error (sig code) #44

Closed
fuckgfw00 opened this issue Dec 17, 2024 · 6 comments · Fixed by #47
Closed

JavaScript interpreter error (sig code) #44

fuckgfw00 opened this issue Dec 17, 2024 · 6 comments · Fixed by #47

Comments

@fuckgfw00
Copy link

[2024-12-17T04:26:08Z ERROR inv_sig_helper_rust::jobs] JavaScript interpreter error (sig code): Some(Exception { message: Some("unexpected token in expression: 'case'"), file: Some("eval_script"), line: Some(1), column: Some(158), stack: Some(" at eval_script:1:158\n") })

@fuckgfw00

This comment was marked as duplicate.

@itsbumblebeecode

This comment was marked as duplicate.

@matzzze
Copy link

matzzze commented Dec 17, 2024

is this the same issue?

root@pinvidious:/home/invidious/inv_sig_helper# ./target/release/inv_sig_helper_rust --tcp [2024-12-17T18:54:58Z INFO inv_sig_helper_rust] Fetching player [2024-12-17T18:54:58Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/03dbdfab/player_ias.vflset/en_US/base.js [2024-12-17T18:54:59Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\s*function(\([\w]+\)\{\s*var\s+[\w\s]+=[\w\.\s]+?\.call\s*\([\w\s$]+?,[\(\)\",\s]+\)[\S\s]*?\}\s*return [\w\.\s$]+?\.call\s*\([\w\s$]+?\s*,[\(\)\",\s]+\)\s*\}\s*;) thread 'main' panicked at src/player.rs:198:10: called `Option::unwrap()` on a `None` value note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Aborted

@Drikanis
Copy link

#45 was closed as a duplicate of this one, but reported error message is different despite likely being the same cause.

[2024-12-17T18:47:23Z INFO  inv_sig_helper_rust] Fetching player
[2024-12-17T18:47:24Z INFO  inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/03dbdfab/player_ias.vflset/en_US/base.js
[2024-12-17T18:47:24Z WARN  inv_sig_helper_rust::player] nsig function ending did not work: =\s*function(\([\w]+\)\{\s*var\s+[\w\s]+=[\w\.\s]+?\.call\s*\([\w\s$]+?,[\(\)\",\s]+\)[\S\s]*?\}\s*return [\w\.\s$]+?\.call\s*\([\w\s$]+?\s*,[\(\)\",\s]+\)\s*\}\s*;)
thread 'main' panicked at src/player.rs:198:10:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:     0x7fe6c2a16161 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h706c9783aace6373
   1:     0x7fe6c287265b - core::fmt::write::h7221bf2763310748
   2:     0x7fe6c29efd52 - std::io::Write::write_fmt::h5f543a3ea7d45c3d
   3:     0x7fe6c2a1b2d9 - std::sys_common::backtrace::print::hf2079bcf21b5d607
   4:     0x7fe6c2a1aac6 - std::panicking::default_hook::{{closure}}::hd6a41ed4ba4d9cdd
   5:     0x7fe6c2a1bed1 - std::panicking::rust_panic_with_hook::he62aa99a29ab1fe6
   6:     0x7fe6c2a1b60a - std::panicking::begin_panic_handler::{{closure}}::h4295830cbed5c147
   7:     0x7fe6c2a1b599 - std::sys_common::backtrace::__rust_end_short_backtrace::h29724adceafc0e2c
   8:     0x7fe6c2a1b586 - rust_begin_unwind
   9:     0x7fe6c27ea432 - core::panicking::panic_fmt::h5822797b7c57c9a6
  10:     0x7fe6c27ea5cb - core::panicking::panic::h576d2b304e82d017
  11:     0x7fe6c27ea988 - core::option::unwrap_failed::hf12f69fdafb5c188
  12:     0x7fe6c2829baf - inv_sig_helper_rust::player::fetch_update::{{closure}}::hbc289594c89fa552
  13:     0x7fe6c2842a78 - inv_sig_helper_rust::main::{{closure}}::h92460df08abff2f1
  14:     0x7fe6c2839c2a - inv_sig_helper_rust::main::h4c6ed7911b8effb7
  15:     0x7fe6c28004f3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h65fca62ed9181c86
  16:     0x7fe6c2845fb4 - main

@johnpc
Copy link

johnpc commented Dec 17, 2024

@lifo9 documented instructions how to fix this here: #43 (comment)

@lifo9
Copy link
Contributor

lifo9 commented Dec 17, 2024

I hope iv-org/invidious#4985 is merged soon 😄
Meanwhile, here's the fix.
I will prepare PR shortly.

image

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

Successfully merging a pull request may close this issue.

6 participants