gausma / nodered-contrib-signal-client

Signal communicator client nodes for Node-RED
GNU General Public License v3.0
34 stars 13 forks source link

Signal and Nodered Docker #31

Open seppelicous opened 3 years ago

seppelicous commented 3 years ago

Hi, I am using NodeRed on a Synology NAS with the built in Docker system. Can someone support me how to install the missing packages/dependencies that are needed to run Signal with NodeRed?

Thank you very much!

lumi-show-gz commented 3 years ago

This isn't the place for support, this is an issue tracking page.

seppelicous commented 3 years ago

Well, I installed it and it throws many errors does not work correctly. So I assume it is known that there some dependencies that are not provided in a regular installation of nodered

seppelicous commented 3 years ago

Okay, lets start different. Here is the log of while I installed the plugin. Some lines are marked with "err". Since I do not receive any registration message, I want to make sure, that everything is everything is installed correctly:

`2021-09-01T04:51:29.500Z Installieren : nodered-contrib-signal-client 2.4.2

2021-09-01T04:51:29.608Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict nodered-contrib-signal-client@2.4.2 2021-09-01T04:51:43.655Z [err] npm 2021-09-01T04:51:43.655Z [err] WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. 2021-09-01T04:52:02.604Z [out] 2021-09-01T04:52:02.604Z [out] > bufferutil@4.0.3 install /data/node_modules/bufferutil 2021-09-01T04:52:02.604Z [out] > node-gyp-build 2021-09-01T04:52:02.604Z [out] 2021-09-01T04:52:03.015Z [out] 2021-09-01T04:52:03.015Z [out] > utf-8-validate@5.0.5 install /data/node_modules/utf-8-validate 2021-09-01T04:52:03.015Z [out] > node-gyp-build 2021-09-01T04:52:03.015Z [out] 2021-09-01T04:52:03.251Z [out] 2021-09-01T04:52:03.251Z [out] > node-webcrypto-ossl@1.0.49 install /data/node_modules/node-webcrypto-ossl 2021-09-01T04:52:03.251Z [out] > node-gyp rebuild 2021-09-01T04:52:03.251Z [out] 2021-09-01T04:52:12.293Z [out] make: Entering directory '/data/node_modules/node-webcrypto-ossl/build' 2021-09-01T04:52:12.316Z [out] CXX(target) Release/obj.target/nodessl/src/main.o 2021-09-01T04:52:15.931Z [err] In file included from ../../nan/nan.h:56, 2021-09-01T04:52:15.931Z [err] from ../src/node/../core/common.h:8, 2021-09-01T04:52:15.931Z [err] from ../src/node/common.h:4, 2021-09-01T04:52:15.931Z [err] from ../src/main.cpp:1: 2021-09-01T04:52:15.931Z [err] /usr/src/node-red/.cache/node-gyp/14.17.3/include/node/node.h:758:43: warning: cast between incompatible function types from 'void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void ()(v8::Local)'} to 'node::addon_register_func' {aka 'void ()(v8::Local, v8::Local, void)'} [-Wcast-function-type] 2021-09-01T04:52:15.931Z [err] 758 | (node::addon_register_func) (regfunc), \ 2021-09-01T04:52:15.931Z [err] | ^ 2021-09-01T04:52:15.931Z [err] /usr/src/node-red/.cache/node-gyp/14.17.3/include/node/node.h:792:3: note: in expansion of macro 'NODE_MODULE_X' 2021-09-01T04:52:15.931Z [err] 792 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) 2021-09-01T04:52:15.931Z [err] | ^~~~~ 2021-09-01T04:52:15.931Z [err] ../src/main.cpp:93:1: note: in expansion of macro 'NODE_MODULE' 2021-09-01T04:52:15.931Z [err] 93 | NODE_MODULE(nodessl, InitModule); 2021-09-01T04:52:15.931Z [err] | ^~~ 2021-09-01T04:52:17.396Z [out] CXX(target) Release/obj.target/nodessl/src/core/key_exp.o 2021-09-01T04:52:18.757Z [out] CXX(target) Release/obj.target/nodessl/src/core/scoped_ssl.o 2021-09-01T04:52:19.625Z [out] CXX(target) Release/obj.target/nodessl/src/core/logger.o 2021-09-01T04:52:20.378Z [out] CXX(target) Release/obj.target/nodessl/src/core/excep.o 2021-09-01T04:52:21.290Z [out] CXX(target) Release/obj.target/nodessl/src/core/digest.o 2021-09-01T04:52:22.669Z [out] CXX(target) Release/obj.target/nodessl/src/core/bn.o 2021-09-01T04:52:25.270Z [out] CXX(target) Release/obj.target/nodessl/src/rsa/rsa_gen.o 2021-09-01T04:52:27.773Z [out] CXX(target) Release/obj.target/nodessl/src/rsa/rsa_jwk.o 2021-09-01T04:52:30.443Z [out] CXX(target) Release/obj.target/nodessl/src/rsa/rsa_pkcs1.o 2021-09-01T04:52:34.126Z [out] CXX(target) Release/obj.target/nodessl/src/rsa/rsa_oaep.o 2021-09-01T04:52:36.819Z [out] CXX(target) Release/obj.target/nodessl/src/rsa/rsa_pss.o 2021-09-01T04:52:39.967Z [out] CXX(target) Release/obj.target/nodessl/src/ec/ec_gen.o 2021-09-01T04:52:42.575Z [out] CXX(target) Release/obj.target/nodessl/src/ec/ec_dsa.o 2021-09-01T04:52:45.303Z [out] CXX(target) Release/obj.target/nodessl/src/ec/ec_dh.o 2021-09-01T04:52:47.864Z [out] CXX(target) Release/obj.target/nodessl/src/ec/ec_jwk.o 2021-09-01T04:52:50.478Z [out] CXX(target) Release/obj.target/nodessl/src/aes/aes_gen.o 2021-09-01T04:52:53.079Z [out] CXX(target) Release/obj.target/nodessl/src/aes/aes_ecb.o 2021-09-01T04:52:57.166Z [out] CXX(target) Release/obj.target/nodessl/src/aes/aes_cbc.o 2021-09-01T04:52:59.262Z [err] ../src/aes/aes_cbc.cpp: In member function 'Handle<std::cxx11::basic_string > ScopedAES::wrap(Handle<std::cxx11::basic_string >)': 2021-09-01T04:52:59.262Z [err] ../src/aes/aes_cbc.cpp:111:98: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 2021-09-01T04:52:59.262Z [err] 111 | if (AES_set_encrypt_key((const byte)this->value->c_str(), (const int)(this->value->length() 8), &aes_key) < 0) 2021-09-01T04:52:59.262Z [err] | ^ 2021-09-01T04:52:59.266Z [err] ../src/aes/aes_cbc.cpp: In member function 'Handle<std::cxx11::basic_string > ScopedAES::unwrap(Handle<std::cxx11::basic_string >)': 2021-09-01T04:52:59.266Z [err] ../src/aes/aes_cbc.cpp:138:92: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 2021-09-01T04:52:59.266Z [err] 138 | if (AES_set_decrypt_key((const byte)this->value->c_str(), (const int)this->value->length() 8, &aes_key) < 0) 2021-09-01T04:52:59.266Z [err] | ^ 2021-09-01T04:52:59.961Z [out] CXX(target) Release/obj.target/nodessl/src/aes/aes_gcm.o 2021-09-01T04:53:02.845Z [out] CXX(target) Release/obj.target/nodessl/src/aes/aes_ctr.o 2021-09-01T04:53:05.564Z [out] CXX(target) Release/obj.target/nodessl/src/hmac/hmac_gen.o 2021-09-01T04:53:08.161Z [out] CXX(target) Release/obj.target/nodessl/src/hmac/hmac_sign.o 2021-09-01T04:53:10.654Z [out] CXX(target) Release/obj.target/nodessl/src/pbkdf2/pbkdf2_derive.o 2021-09-01T04:53:13.099Z [out] CXX(target) Release/obj.target/nodessl/src/node/common.o 2021-09-01T04:53:15.782Z [out] CXX(target) Release/obj.target/nodessl/src/node/w_key.o 2021-09-01T04:53:21.720Z [out] CXX(target) Release/obj.target/nodessl/src/node/w_aes.o 2021-09-01T04:53:27.007Z [out] CXX(target) Release/obj.target/nodessl/src/node/w_hmac.o 2021-09-01T04:53:32.739Z [out] CXX(target) Release/obj.target/nodessl/src/node/w_pbkdf2.o 2021-09-01T04:53:36.499Z [out] CXX(target) Release/obj.target/nodessl/src/node/w_core.o 2021-09-01T04:53:39.893Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_rsa.o 2021-09-01T04:53:44.872Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_ec.o 2021-09-01T04:53:49.016Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_aes.o 2021-09-01T04:53:53.142Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_hmac.o 2021-09-01T04:53:56.606Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_pbkdf2.o 2021-09-01T04:53:59.735Z [out] CXX(target) Release/obj.target/nodessl/src/node/async_core.o 2021-09-01T04:54:02.603Z [out] SOLINK_MODULE(target) Release/obj.target/nodessl.node 2021-09-01T04:54:03.043Z [out] COPY Release/nodessl.node 2021-09-01T04:54:03.050Z [out] make: Leaving directory '/data/node_modules/node-webcrypto-ossl/build' 2021-09-01T04:54:03.116Z [out] 2021-09-01T04:54:03.116Z [out] > core-js@2.6.12 postinstall /data/node_modules/core-js 2021-09-01T04:54:03.116Z [out] > node -e "try{require('./postinstall')}catch(e){}" 2021-09-01T04:54:03.116Z [out] 2021-09-01T04:54:03.236Z [out] Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 2021-09-01T04:54:03.236Z [out] 2021-09-01T04:54:03.236Z [out] The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:  2021-09-01T04:54:03.236Z [out] > https://opencollective.com/core-js  2021-09-01T04:54:03.236Z [out] > https://www.patreon.com/zloirock  2021-09-01T04:54:03.236Z [out] 2021-09-01T04:54:03.236Z [out] Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 2021-09-01T04:54:03.236Z [out] 2021-09-01T04:54:03.271Z [out] 2021-09-01T04:54:03.271Z [out] > protobufjs@6.11.2 postinstall /data/node_modules/protobufjs 2021-09-01T04:54:03.271Z [out] > node scripts/postinstall 2021-09-01T04:54:03.271Z [out] 2021-09-01T04:54:05.262Z [out] + nodered-contrib-signal-client@2.4.2 2021-09-01T04:54:05.262Z [out] added 145 packages from 232 contributors in 154.457s 2021-09-01T04:54:05.374Z rc=0`

And this is the error I receive, when sending the request sms:

Signal client error: {"name":"HTTPError","code":402,"response":"<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\"/>\n<title>Error 402 Payment Required</title>\n</head>\n<body><h2>HTTP ERROR 402 Payment Required</h2>\n<table>\n<tr><th>URI:</th><td>/v1/accounts/sms/code/+MYPHONENUMBER</td></tr>\n<tr><th>STATUS:</th><td>402</td></tr>\n<tr><th>MESSAGE:</th><td>Payment Required</td></tr>\n<tr><th>SERVLET:</th><td>jersey</td></tr>\n</table>\n\n</body>\n</html>\n"}

cameo69 commented 3 years ago

You need to follow the instructions for registration with captcha here on github: https://github.com/gausma/nodered-contrib-signal-client#registration-with-captcha