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
fatal runtime error: failed to initiate panic, error 5 #18
Comments
Hey, the client implicitly expects the server to be listening on HTTP://localhost:8000. |
yes, is running in that port. I didn't change default settings. Also, not sure if is related with server connection because is just the initialization of the object (also checked class implementation and does not seems to be doing nothing weird https://github.com/KZen-networks/gotham-city/blob/master/gotham-client/src/lib.rs#L55) ps: Also I did a test only with gotham and is working (is not a library test but just want to be sure that my OS was not blocking the port or the process) |
I just did another test cloning gotham and adding some println (apologies I dont know rust) and the line that throws the error is https://github.com/KZen-networks/gotham-city/blob/master/gotham-client/src/lib.rs#L56 this is my fork https://github.com/dolcalmi/gotham-city/blob/master/gotham-client/src/lib.rs#L57 ( I only got the first message "gotham ClientShim before client creation http://localhost:8000" ) |
This may also happen if the server does not have the same share id as being queried by the client. |
the last was tested in this library, also no connection was done at that point ( is just an initialization without url or connection to the server let client = reqwest::Client::new();) |
I tested on a clean Ubuntu 18.04.5 LTS machine with the exact configuration you detailed, and the demo went through. |
"One eternity later" and just for future reference. the error is the same as shown here nodejs/help#2376 and related with the comment in https://docs.rs/reqwest/0.10.7/reqwest/struct.Client.html#method.new
really not sure why is not linking with the OS TLS lib but I had to compile the native lib with the next command (package.json):
you can get openssl path with:
Hope it helps |
Wow. Thanks for the thorough analysis and reaching back with this info! |
ClientShim initialization is failing with "fatal runtime error: failed to initiate panic, error 5" (command: node ./demo/ecdsa-party2.js)
I debug it and the line that throws the fatal runtime error is https://github.com/KZen-networks/thresh-sig-js/blob/master/native/src/party2/ecdsa.rs#L99 ( I tested directly downloading the repo and with terra-thresh-wallet repo)
My Environment:
Other considerations:
The text was updated successfully, but these errors were encountered: