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

Demo deployment on Ubuntu 20.04 with web server configured with Nginx got error with wasm streaming #8

Closed
meassinal opened this issue Dec 26, 2021 · 1 comment

Comments

@meassinal
Copy link

Hi,

Thank you for the demo example so I can experiment the onnx model.

I've been trying to deploy the built demo app to remote server (i.e AWS EC2, Ubuntu 20.04). But, I got an error message in the follwoing:

wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'. 
falling back to ArrayBuffer instantiation

Screen Shot 2021-12-26 at 4 26 48 PM

But, some part of the app work except camera. I thought it might be caused by above error. Apparently, official demo works pretty well.

So far, I'm still searching for a solution, and if you could help point out the problem I really appreciate that.

Thanks in advance.

@meassinal
Copy link
Author

It's fixed by adding application/wasm wasm to /etc/nginx/mime.types

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

1 participant