Wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': HTTP status code is not ok

The core functionality of the HOOPS Web Viewer is available in a WebAssembly format or as a standalone library. If you are using WebAssembly, there are four files required:

  • hoops_web_viewer.js
  • engine-asmjs.js
  • engine-wasm.js
  • engine.wasm

If the title of this article is appearing in the web browser console as an error message when launching the Web Viewer, ensure that the files listed above are all in the same directory:

Additionally, check that your server is correctly configured to handle WebAssembly. More information on the basic setup configuration for the Web Viewer can be found in our docs.