-
Notifications
You must be signed in to change notification settings - Fork 13
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
Registration problem #18
Comments
Am also having the same. |
I have this same issue. Tried with different numbers (which have the Signal app installed correctly) but have the same issue. |
In some cases signal requires a captcha: Fixed in signal-cli in November: |
I can indeed perform the captcha operation and find back the redirect at the end of the process in the browser's dev tools which is like But no idea how to include such captcha token in current node-red process, I guess the registration node should have to mange a new param but it get quite complex to integrate in the node-red UI... |
It's not implemented yet. Here is the function -> https://github.com/gausma/nodered-contrib-signal-client/blob/main/src/signal-client.js#L94 The downstream library doesn't support captcha either |
@nadeerck2020 avoid "same" type messages. You notify everyone watching without any value added to the conversation. |
@fanuch Sorry, i am going to remove it. |
Hi, I'm also affected. So I went though the whole procedure and added the captcha field. Thanks for the already posted links. cd nodered-contrib-signal-client Hope, it might help. |
Should I do something after applying the patch and restarting node-red? I see no captcha field in config node. |
Absolute legend @max3232rs. Worked for me (using NR from within a Docker container). @Onixarts I had to restart my Docker container, so I assume NR needs a reload. Lastly, @max3232rs your relative paths needed some adjusting as you had My instructions:
|
Hi, @fanuch I use node-red on a raspberry-pi and the modules has been installed via @Onixarts restarting node-red is important and I also mentioned, that you have to press Ctrl-F5 in the flow designer (or wipe the browser cache otherwise) to have the changed html visible. |
Hi @max3232rs, I would like to add the captcha functionality. I should understand better how it works because I've never seen this request. I assume you get an error message in the log. Is the message also output in the debug sidebar? What does the message look like? Can you send an axample for the readme? Can you please explain where the captch string you entered in the screenshot comes from? |
Yes it is in the debug sidebar, after requesting sms code, comming from the node itself (not debug node).
|
Captcha code, found on the Home Assistant github https://github.com/bbernhard/signal-cli-rest-api/blob/master/doc/HOMEASSISTANT.md
After received sms code I've put it into register node. But it looks like registering my phone number in node-red cause my desktop and android phone clients unregisters. I can't make this work. |
I applied the patch @max3232rs created. The pacth execution failed for me on the 2 last files ('AccountManager.js' and 'WebAPI.js') but was OK for the others. Not clear to me why it had a HUNK error, all paths,.. looked OK. Anyway, I applied the changes manually and its works now (by getting the captcha info from debugger pane indeed, as explained by @Onixarts). Thanks ! @Onixarts : the register process does not allow adding a new device. It re-registers an account from scratch, disconnecting all others. The procedure to add a device exists but seems very different (and requires both devices to be able to 'talk' with each other to ensure Peer-to-Peer coherent encryption is OK (as far as I understood it). |
Hi, @gausma
But I would like show this: If this it the original code on serverside, the captcha is expected as QueryParam and not as posted json data, like @Onixarts: (according to @FredBlo ) The node uses the "registerSingleDevice" method, which definetly kicks out a previous device. I did some cross test on an iOS client and got authentication failures there after node-red activation. |
Just for clarification: The |
I've added the captcha functionality and updated the nodered-contrib-signal-client to version 2.4.0. Also the library @gausma/libsignal-service-javascript was updated. Please update both and verify the new functionality. |
I've updated and working great for me. The documentation is excellent - great job! |
So I just started a fresh install of node-red in docker, and installed the palette but when I go to the captcha page (im getting 402 error), I'm seeing this (under developer tools) - Where it says token, is this where I should be seeing the key? I swear am jinxed :) |
@gausma Thank you for that. This was what I was looking at before. For some reason maybe my IP had been flagged as abusive due to the number of tries previously. I repeated the steps and it did indeed throw me out the token. Once i popped that in, everything worked and I was able to receive the code and register. I was able to send straight away, but I could only receive once I removed an extra receive node i had lying on the flow. Thanks to everyone for their help! |
I've been having trouble trying to get the Signal client working on my Pi4; mainly because I can't seem to get past the registration process, even though I've followed the instructions above and managed to enter the capture code. When I send the capture code I get the following response (mobile number redacted): Furthermore, from reading some of the comments above, I have some concerns and would appreciate your comments on the following:
|
The Signal app on a smart phone is bound to a phone number. To use the Node-RED signal nodes, a phone number must be registered for a so-called account, which is used to authenticate the sender and receiver nodes. A phone number can be used either for a mobile phone or for a node account. Multiple devices or accounts cannot be used with one phone number. But there's no reason to give Signal your mobile phone number. By providing Signal with any phone number at which you can receive an SMS or voice message, you can register a Signal account at that other phone number. For example keep your cell phone number and Signal account on your cell phone as it is. Use your land line number or some other number for your Node-RED system. If you've managed the registration you can use multiple sender nodes with one account but only one reveiver node. |
Hi,
No worries. I actually gave up on Signal as I found it too difficult to navigate this registration process on NodeRed.
I can strongly recommend Telegram, which is reliable, stable and easy to set up.
Good luck.
… On 27 Jun 2021, at 8:25 pm, BlackCatPeanut ***@***.***> wrote:
Sorry to comment on a closed issue but it seems the most relevant to my issue. I'm in the inspector trying to grab the token for registration. I complete the captcha - however get an empty token in the inspector:
<https://user-images.githubusercontent.com/17835997/123555393-64fb3280-d77d-11eb-8b07-32d9d7b31a28.png>
Any suggestions or ideas? I've tried a difference browser and incognito mode...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#18 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATHXPVIVRZ53GGSEYOCIBG3TU5UKZANCNFSM4XJG6H2A>.
|
The above instructions worked for me to register a previously unused telephone number with signal |
After send request-sms or request-voice I get this message and sms code is not send:
"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/+48*********</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>io.dropwizard.jersey.setup.JerseyServletContainer-289cf7db</td></tr>\n</table>\n\n</body>\n</html>\n"}"
The text was updated successfully, but these errors were encountered: