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

Import #7 module="wbg" function="__wbindgen_number_get" error: function import requires a callable #610

Open
khysokhorn opened this issue Nov 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@khysokhorn
Copy link

Describe the bug

When movie source we get this error with every extractor

Steps to reproduce

jest ./test/movies/sflix.test.ts

console.log
[LinkError: WebAssembly.instantiate(): Import #7 module="wbg" function="__wbindgen_number_get" error: function import requires a callable] err

  at SFlix.fetchEpisodeSources (src/providers/movies/sflix.ts:258:15)

FAIL test/movies/sflix.test.ts
✕ returns a filled object of streaming sources (2064 ms)

● returns a filled object of streaming sources

WebAssembly.instantiate(): Import #7 module="wbg" function="__wbindgen_number_get" error: function import requires a callable

  257 |     } catch (err) {
  258 |       console.log(err, 'err');
> 259 |       throw new Error((err as Error).message);
      |             ^
  260 |     }
  261 |   };
  262 |

  at SFlix.fetchEpisodeSources (src/providers/movies/sflix.ts:259:13)
  at async Object.<anonymous> (test/movies/sflix.test.ts:33:26)

Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 3.095 s
Ran all test suites matching /./test/movies/sflix.test.ts/i.

Expected behavior

jest ./test/movies/sflix.test.ts

console.log
[LinkError: WebAssembly.instantiate(): Import #7 module="wbg" function="__wbindgen_number_get" error: function import requires a callable] err

  at SFlix.fetchEpisodeSources (src/providers/movies/sflix.ts:258:15)

FAIL test/movies/sflix.test.ts
✕ returns a filled object of streaming sources (2064 ms)

● returns a filled object of streaming sources

WebAssembly.instantiate(): Import #7 module="wbg" function="__wbindgen_number_get" error: function import requires a callable

  257 |     } catch (err) {
  258 |       console.log(err, 'err');
> 259 |       throw new Error((err as Error).message);
      |             ^
  260 |     }
  261 |   };
  262 |

  at SFlix.fetchEpisodeSources (src/providers/movies/sflix.ts:259:13)
  at async Object.<anonymous> (test/movies/sflix.test.ts:33:26)

Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 3.095 s
Ran all test suites matching /./test/movies/sflix.test.ts/i.

Actual behavior

Should return m3u8

Additional context

No response

@khysokhorn khysokhorn added the bug Something isn't working label Nov 23, 2024
@wanwanvxt
Copy link

I also got this bug for the past few days. 😥

@JayadityaGit
Copy link

Same need help on this one !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants