Kalle Blomquist commented on issue #23 at morph027 / signal-web-gateway

Kalle Blomquist
2021-08-10T15:01:51Z

What I also wanted to tell you: I was asked for a username. Can this be set in the config.yml during the preparation step?

docker run --pull always --rm -it -v signal-web-gateway_config:/signal/.config -v signal-web-gateway_storage:/signal/.storage registry.gitlab.com/morph027/signal-web-gateway register

latest: Pulling from morph027/signal-web-gateway
33847f680f63: Already exists
f66b246172f4: Already exists
d8140923a2cb: Already exists
1c7ee0363b41: Already exists
6675b629fdaa: Pull complete
02d94015b0d9: Pull complete
Digest: sha256:166a0d6e709667c40d329d04d6a380a70fbf937ab7d6ce1e9f38a8497d020c0b
Status: Downloaded newer image for registry.gitlab.com/morph027/signal-web-gateway:latest

INFO[2021/08/10 07:23:42] [textsecure] request verification code for +xxxxxxxxxx
DEBU[2021/08/10 07:23:43] [textsecure] GET /v1/accounts/voice/code/+xxxxxxxxxx?client=android 402
ERRO[2021/08/10 07:23:43] [textsecure] requestCode


Error 402 Payment Required

HTTP ERROR 402 Payment Required

URI: /v1/accounts/voice/code/+xxxxxxxxxx
STATUS: 402
MESSAGE: Payment Required
SERVLET: jersey




INFO[2021/08/10 07:23:43] [textsecure] registration needs captcha
INFO[2021/08/10 07:23:43] 1. Goto https://signalcaptchas.org/registration/generate.html
INFO[2021/08/10 07:23:43] 2. Run the interception code in the browser terminal.
INFO[2021/08/10 07:23:43] window.onToken = function(token){alert(token);};
INFO[2021/08/10 07:23:43] 3. Solve captcha and copy the token from the alert.

4. Enter captcha token>03AGdBq273PE8ru....(...)...FzGYaRhrDswvpqlKe5dUWKj4zMIDFJLB_xdv10

INFO[2021/08/10 07:32:10] [textsecure] request verification code for +xxxxxxxxxx
DEBU[2021/08/10 07:32:11] [textsecure] GET /v1/accounts/voice/code/+xxxxxxxxxx ?client=android&captcha=03AGdBq273PE8ru....(...)...FzGYaRhrDswvpqlKe5dUWKj4zMIDFJLB_xdv10 200

Enter verification code>123456

DEBU[2021/08/10 07:32:44] [textsecure] verifyCode {u8e....(...)...a01k/2/qN4l37....(...)...aIoCvw== true 4996 false false <nil> { } {false true false false} true false <nil>}
DEBU[2021/08/10 07:32:44] [textsecure] PUT /v1/accounts/code/123456 200
DEBU[2021/08/10 07:32:44] [textsecure] PUT /v2/keys/ 204
DEBU[2021/08/10 07:32:44]
DEBU[2021/08/10 07:32:44] [textsecure] get my uuid
DEBU[2021/08/10 07:32:45] [textsecure] GET /v1/accounts/whoami 200
INFO[2021/08/10 07:32:45] Registration done.
INFO[2021/08/10 07:32:45] [textsecure] RegistrationDone
INFO[2021/08/10 07:32:45] Registration done.
INFO[2021/08/10 07:32:45] Registration done.

A username is missing please enter one>MyUsername

DEBU[2021/08/10 07:33:17] [textsecure] GetRegisteredContacts
INFO[2021/08/10 07:33:17] Could not get contacts: could not get local contacts :open .config/contacts.yml: no such file or directory
DEBU[2021/08/10 07:33:17] [textsecure] Websocket Connecting to signal-server
DEBU[2021/08/10 07:33:17] [textsecure] Websocket Connected successfully
DEBU[2021/08/10 07:33:17] [textsecure] Ask for new messages
INFO[2021/08/10 07:33:17] [textsecure] No new messages
DEBU[2021/08/10 07:33:17] [textsecure] Websocket sending message
DEBU[2021/08/10 07:34:11] [textsecure] Sending websocket ping message
DEBU[2021/08/10 07:34:11] [textsecure] Received websocket pong message