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

instance.wait() throws 'oneshot canceled` #443

Open
ambrt opened this issue Nov 19, 2024 · 0 comments
Open

instance.wait() throws 'oneshot canceled` #443

ambrt opened this issue Nov 19, 2024 · 0 comments
Assignees

Comments

@ambrt
Copy link

ambrt commented Nov 19, 2024

Wasmer throws error in cowsay example

(...)
ERROR scheduler{thread_id=0}: wasmer_js::tasks::scheduler: An error occurred while handling a message error=__filename is not defined

(...)

Error: oneshot canceled
    at e.wbg.__wbg_new_28c511d9baebfa89 (file:///home/user/wasmer/examples/node_modules/@wasmer/sdk/dist/index.mjs:11:35384)
    at wasm://wasm/015c03b2:wasm-function[1466]:0x2fbfb8
    at wasm://wasm/015c03b2:wasm-function[7059]:0x424e95
    at wasm://wasm/015c03b2:wasm-function[277]:0xa5fbf
    at wasm://wasm/015c03b2:wasm-function[2038]:0x34ba1e
    at wasm://wasm/015c03b2:wasm-function[2897]:0x3ac776
    at wasm://wasm/015c03b2:wasm-function[9401]:0x44074e
    at v (file:///home/user/wasmer/examples/node_modules/@wasmer/sdk/dist/index.mjs:11:2534)
    at o (file:///home/user/wasmer/examples/node_modules/@wasmer/sdk/dist/index.mjs:11:2374)
    at node:internal/process/task_queues:151:7 {
  detailedMessage: 'oneshot canceled',
  causes: []
}

Script is:

import { init, Wasmer, initializeLogger } from "@wasmer/sdk/node";

async function run() {
  await init();

  let cowsay = await Wasmer.fromRegistry("cowsay");

  let instance = await cowsay.entrypoint.run({ args: ["hello world"] });
  const output = await instance.wait();
  
}
run();
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

2 participants