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

thread main panicked at called Result::unwrap() for web build #4

Closed
greysoftcrazy opened this issue Mar 12, 2023 · 5 comments
Closed

Comments

@greysoftcrazy
Copy link

Serving [/home/greysoft/temp/koi/web_build] at [ https://localhost:8080 ] or [ http://localhost:8080 ]
Automatic reloading is enabled!
Stop with Ctrl+C
thread 'main' panicked at 'called Result::unwrap() on an Err value: Normal(ErrorStack([Error { code: 50856204, library: "digital envelope routines", function: "inner_evp_generic_fetch", reason: "unsupported", file: "crypto/evp/evp_fetch.c", line: 373, data: "Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()" }]))', /home/greysoft/.cargo/registry/src/github.com-1ecc6299db9ec823/devserver_lib-0.4.1/src/lib.rs:136:62
stack backtrace:
0: rust_begin_unwind
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:64:14
2: core::result::unwrap_failed
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/result.rs:1790:5
3: devserver_lib::run
4: devserver::main

this is difficult for me

@kettle11
Copy link
Owner

That's just the development server failing for some reason. You can try another development server:

Edit run.sh to contain this:

./web_build.sh ${@:1}
 simple-http-server --coep --coop --cors -- web_build

and install simple-http-server with cargo install simple-http-server

Let me know if that works!

@greysoftcrazy
Copy link
Author

That's just the development server failing for some reason. You can try another development server:

Edit run.sh to contain this:

./web_build.sh ${@:1}
 simple-http-server --coep --coop --cors -- web_build

and install simple-http-server with cargo install simple-http-server

Let me know if that works!

This works like a directory view but not a web page view.

@greysoftcrazy
Copy link
Author

Should there be an html file and Javascript at the start to load and run the WebAssembly file?

@kettle11
Copy link
Owner

Ah, you are right. I just fixed it by checking in the web_build/index.html file in this commit: 66dceb7

Now if you run run.sh and navigate to localhost:8080/index.html (but replace 8080 with the actual port simple-http-server uses) you should see the example.

@greysoftcrazy
Copy link
Author

greysoftcrazy commented Mar 12, 2023

It worked when I set the address to 127.0.0.1:8080

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