mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

The as_token was not accepted. Is the registration file installed in your homeserver correctly? #611

Closed boranity closed 1 year ago

boranity commented 1 year ago

boranity@debian-8gb-nbg1-1:~/mautrix-whatsapp-data$ docker run --rm -v pwd:/data:z dock.mau.dev/mautrix/whatsapp:latest 2023-04-22T14:19:16Z INF Initializing bridge built_at="Apr 19 2023, 14:31:44" go_version=go1.20.1 name=mautrix-whatsapp version=0.8.4+dev.300815ba 2023-04-22T14:19:16Z DBG Initializing database connection 2023-04-22T14:19:16Z WRN Using SQLite without _txlock=immediate is not recommended fixed_uri_example=file:test.db?_txlock=immediate 2023-04-22T14:19:16Z DBG Initializing state store 2023-04-22T14:19:16Z DBG Initializing Matrix event processor 2023-04-22T14:19:16Z DBG Initializing Matrix event handler 2023-04-22T14:19:16Z DBG Bridge built with end-to-bridge encryption, but disabled in config 2023-04-22T14:19:16Z INF Bridge initialization complete, starting... 2023-04-22T14:19:16Z DBG Running database upgrades 2023-04-22T14:19:16Z INF Database is up to date current_db_version=55 db_section=main latest_known_version=55 2023-04-22T14:19:16Z INF Database is up to date current_db_version=5 db_section=matrix_state latest_known_version=5 2023-04-22T14:19:16Z DBG Starting application service HTTP server 2023-04-22T14:19:16Z DBG Checking connection to homeserver 2023-04-22T14:19:16Z DBG Sending request as_user_id=@whatsappbot:ramondia.net method=GET req_id=1 url=https://matrix.ramondia.net/_matrix/client/versions?user_id=%40whatsappbot%3Aramondia.net 2023-04-22T14:19:16Z INF Starting HTTP listener address=0.0.0.0:29318 2023-04-22T14:19:17Z DBG Request completed as_user_id=@whatsappbot:ramondia.net duration=62.531155 method=GET path=/versions req_id=1 response_length=859 response_mime=application/json status_code=200 2023-04-22T14:19:17Z DBG Sending request as_user_id=@whatsappbot:ramondia.net body={"inhibit_login":true,"type":"m.login.application_service","username":"whatsappbot"} method=POST req_id=2 url=https://matrix.ramondia.net/_matrix/client/v3/register?user_id=%40whatsappbot%3Aramondia.net 2023-04-22T14:19:17Z DBG Request completed as_user_id=@whatsappbot:ramondia.net duration=7.273972 method=POST path=/v3/register req_id=2 response_length=85 response_mime=application/json status_code=401 2023-04-22T14:19:17Z FTL The as_token was not accepted. Is the registration file installed in your homeserver correctly?

I added app_service_1.yaml and app_service_2.yaml . I added registration.yaml content in the both app_services.yaml file image