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

website example code not working? #54

Open
DougAnderson444 opened this issue May 18, 2023 · 1 comment
Open

website example code not working? #54

DougAnderson444 opened this issue May 18, 2023 · 1 comment

Comments

@DougAnderson444
Copy link

Hi there,

This looks like a really cool project and I am excited to try it out.

I did compile the hello_world_rust example and tried it uploading hello_world_rust.wasm into the browser on the home page (https://wapc.io/, Step 5). Nothing displayed, but in the console I got:

1df93b7f.4dbe1be6.js:1 Fetching wasm bytes from file system
1df93b7f.4dbe1be6.js:1 Read 146685 bytes from file system
1df93b7f.4dbe1be6.js:1 Instantiating waPCHost with the wasm file
1df93b7f.4dbe1be6.js:1 Host instantiated
1df93b7f.4dbe1be6.js:1 Invoking 'toUppercase' with 18 byte payload
1df93b7f.4dbe1be6.js:1 No handler registered for function toUppercase
1df93b7f.4dbe1be6.js:1 That handler was not exposed to the host. Are you sure you registered the handler in the wapc_init call?
1df93b7f.4dbe1be6.js:1 Host call complete

I didn't see toUppercase or wapc_init anywhere in the template code, I wonder if this is legacy code from a previous version?

@pkedy
Copy link
Member

pkedy commented May 18, 2023

@DougAnderson444 Thanks for creating this issue! We'll track it down. Very well could be something not being in sync with some of the technology refreshes.

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