-
Notifications
You must be signed in to change notification settings - Fork 85
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
example code fails...seems hopeless... is wasmer-js broken? #450
Comments
also, |
I can also call wasmer cli from node, i.e. this works...
|
ok, it really seems this SDK just doesn't work, or I am really missing something basic...? I found these issues so far, being unable to run anything from @wasmer/sdk , yet wasmer cli works fine. Fetch not used properly: Runtime Management Issues: GraphQL/Registry Communication: Required special handling of headers and content types for me to get past this. WebC Format Handling: Error Handling: |
I run this with bun and it worked, I tried version 0.9.0 (latest currently) import { init, Wasmer } from "@wasmer/[email protected]";
await init();
const pkg = await Wasmer.fromRegistry("python/python");
const instance = await pkg.entrypoint.run({
args: ["-c", "print('Hello, World!')"],
});
const { code, stdout } = await instance.wait();
console.log(`Python exited with ${code}: ${stdout}`); |
Experiencing the same issues with the node example in this repository using node 20. TypeError: fetch failed
at node:internal/deps/undici/undici:13392:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
...
starter/node_modules/@wasmer/sdk/dist/index.mjs:11:47648)
...
[cause]: Error: not implemented... yet... Any updates on this? |
I tried the example code on the website. I tried Node 18.x, 20.x, 22.x, they all say "TypeError": fetch failed" and "Error: not implemented... yet..."
For reference, here is the code I'm talking about, it fails at very next line from importinging, await.init()...
Here is the error...
When I rewrite everything and use a polyfill for fetch, I produce this...
Which generates this error, indicating python/python doesn't actually exist, is this accurate?
The text was updated successfully, but these errors were encountered: