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

runtime error #93

Open
ssow opened this issue May 13, 2019 · 4 comments
Open

runtime error #93

ssow opened this issue May 13, 2019 · 4 comments

Comments

@ssow
Copy link

ssow commented May 13, 2019

Hi,

I'm facing a runtime error related to the websocket component.

Error in process <0.226.0> on node 'erlangpl@127.0.0.1' with exit value:
{undef,[{crypto,sha,
[<<"DhX4I0c+u60EPDe8ETlV2w==258EAFA5-E914-47DA-95CA-C5AB0DC85B11">>],
[]},
{cowboy_websocket,websocket_handshake,3,
[{file,"src/cowboy_websocket.erl"},{line,142}]},
{cowboy_protocol,execute,4,
[{file,"src/cowboy_protocol.erl"},{line,522}]}]}

For your information, the node running on centos 7 with erlang/OTP 21

I've tried to recompile the tool but it fails with the following error 👍 error

/production/factory/erlangpl/node_modules/elm-format: Command failed.
Exit signal: SIGABRT
Command: binwrap-install
Arguments:
Directory: /production/factory/erlangpl/node_modules/elm-format
Output:
/usr/bin/node[1466]: ../src/node_contextify.cc:626:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion `args[1]->IsString()' failed.
1: 0x8dc510 node::Abort() [/usr/bin/node]
2: 0x8dc5e5 [/usr/bin/node]
3: 0x91081e node::contextify::ContextifyScript::New(v8::FunctionCallbackInfov8::Value const&) [/usr/bin/node]
4: 0xb6166b [/usr/bin/node]
5: 0xb63602 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/bin/node]

Any suggestion appreciated.

Thank you

@michalslaski
Copy link
Member

Hello @ssow
I can try to help with the first error on CentOS 7, which indicates you do not have the crypto application installed in your system. Try the following command sudo yum install erlang-crypto and then try running the tool again.

@ssow
Copy link
Author

ssow commented May 22, 2019

Hello @michalslaski

I've installed the complete esl-erlang.x86_64 (21.3.7-1) package, which includes crypto-4.4.2.
If this version is ok than the problem is somewhere else, I guess
Thank you.

@michalslaski
Copy link
Member

@ssow OTP 20 removed the previously deprecated crypto:sha/1 function in favour of crypto:hash/2. It seems this project deserves an upgrade of the underlying cowboy library and a new release :)

Thanks so much for reporting the issue, which somehow went unnoticed for a long time!

@ssow
Copy link
Author

ssow commented May 28, 2019

You're welcome.
When can I expect to see the update ?

Thank you

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