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

Captcha invalid or required for verification (null) #495

Closed
EliseRemise opened this issue Feb 4, 2021 · 14 comments
Closed

Captcha invalid or required for verification (null) #495

EliseRemise opened this issue Feb 4, 2021 · 14 comments

Comments

@EliseRemise
Copy link

I know this is the same as #489 However i think something is up. I get the same error on a ubuntu 20.04 box. I followed the instructions as provided at https://github.com/AsamK/signal-cli/blob/master/man/signal-cli.1.adoc#register however i get nothing from https://signalcaptchas.org/registration/generate.html . This is not really a signal-cli problem but prevents registering a new device. Does anyone know a way around this?

@AsamK
Copy link
Owner

AsamK commented Feb 4, 2021

If you don't see anything on that page, ie. no recaptcha images, you probably need to allow all javascript and iframes on that page.

After filling the captcha, the site doesn't show the token but redirects to a signalcaptcha:// url that contains the token. On mobile devices that url is handled by the apps.
To see the URL you can open the browser dev tools (F12) before completing the captcha. There you should see the token in the console or network tab.

@EliseRemise
Copy link
Author

Thank you for the clarification, I was obviously a bit clueless here. For people with a similar knowledge level: The code appeared in the console (firefox) as "Prevented navigation to “signalcaptcha://CODE" due to an unknown protocol." . Which now makes complete sense.

@AsamK
Copy link
Owner

AsamK commented Feb 4, 2021

Great, I've added a wiki page for it. Feel free to update it if something's missing or unclear:
https://github.com/AsamK/signal-cli/wiki/Registration-with-captcha

@Gargamehl
Copy link

within the body tag of that captcha-URL there is no code. I am stuck.
no idea about that data-sitekey..

<script src="https://www.google.com/recaptcha/api.js"></script>

<div class="g-recaptcha"
     data-sitekey="6LedYI0UAAAAAMt8HLj4s-_2M_nYOhWMMFRGYHgY"
     data-callback="onToken"
     data-size="invisible">
</div>

<script>

function onToken(token) {
  window.location = "signalcaptcha://" + token;
}

window.onload = function(e) {
  grecaptcha.execute();
}

</script>

@eracze
Copy link

eracze commented Jun 9, 2021

Hello I have the exact same problem as @Gargamehl, the redirect link is nowhere to be found

@gcey
Copy link

gcey commented Jul 24, 2021

Without the captcha parameter I get

Captcha required for verification, use --captcha CAPTCHA
To get the token, go to https://signalcaptchas.org/registration/generate.html
Check the developer tools (F12) console for a failed redirect to signalcaptcha://
Everything after signalcaptcha:// is the captcha token.

And with the captcha parameter I get

Invalid captcha given.

@Sgn-32
Copy link

Sgn-32 commented Jul 24, 2021

@gcey
Copy link

gcey commented Jul 24, 2021

I added a hint to the wiki https://github.com/AsamK/signal-cli/wiki/Registration-with-captcha

Is this an answer to my problem (see above)? Please help me. Many thanks in advance!

@Sgn-32
Copy link

Sgn-32 commented Jul 24, 2021

@gcey Have you read the instruction in the link?

When you get the notification that captcha is necessary, you get the captcha from:
https://signalcaptchas.org/registration/generate.html

Activate the dev tools (F12) in Firefox.
In the dev tools go to "Console".
Enabled in the "Console Settings" (gear icon, right ) the "Persist logs"
Solve the puzzle
In the logs, something like signalcaptcha:// should appear
Everything after signalcaptcha:// is the captcha token.

@gcey
Copy link

gcey commented Jul 24, 2021

Yes.
But I don't see any puzzle there, just a completely empty page.
Nevertheless signalcaptcha://<some-very-long-string> appears in the logs.
When I execute signal-cli -u <my-phone-number> register --voice --captcha <some-very-long-string>
I get Invalid captcha given.

@Sgn-32
Copy link

Sgn-32 commented Jul 24, 2021

If you don't see anything on that page, ie. no recaptcha images, you probably need to allow all javascript and iframes on that page.

Which level (Standard, Strict or Custom) are the "Privacy & Security" of Firefox?
Should be possible with "Standard" to see the captcha-puzzle.

Invalid captcha given

Seems that the captcha-Code isn't activated, because the puzzle isn't solved.
But try it with additional --verbose

@gcey
Copy link

gcey commented Jul 24, 2021

Level is "Standard", but even with "Custom" and nothing blocked the page is empty.
Also with Chrome it didn't work, but fortunately with Edge the puzzle is shown and everything works very well.
Many thanks!

@wayneworkman
Copy link

wayneworkman commented Aug 7, 2021

I added a helpful Python script to the wiki page for this, for Linux Firefox users. Perhaps works for others too.
https://github.com/AsamK/signal-cli/wiki/Registration-with-captcha

@findell666
Copy link

It worked for me on Firefox in a private navigation window :)

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

8 participants