!meta-v11:maunium.net

Mautrix-Meta Bridge

492 Members
Discussion about mautrix-meta | Latest release: v0.3.2 | https://github.com/mautrix/meta257 Servers

Load older messages


SenderMessageTime
29 Jan 2024
@tulir:maunium.nettulir if you enable trace logs it should have a line saying Mercury upload response with the raw response data 11:44:40
@pawel:server-one.topZiemnior Okay, will send them when I get home 11:45:20
@github:maunium.netGitHub [mautrix/meta] NicolasDerumigny starred the repo 11:49:22
@github:maunium.netGitHub [mautrix/meta] TheDoor added  bug  to issue #6: Meta Bridge Facebook Messenger Integration Issue with End-to-End Encryption 11:57:13
@github:maunium.netGitHub [mautrix/meta] TheDoor opened issue #6: Meta Bridge Facebook Messenger Integration Issue with End-to-End Encryption

I set up the Meta Bridge for Facebook Messenger using double puppeting, running both the bridge and my Synapse Matrix home server in Docker containers. However, I'm facing an issue when trying to send messages to users who turned on the new end-to-end encryption in Messenger. On the flip side, I can still chat with users who haven't enabled this encryption feature. Since I couldn't find anything about this in the documentation, I'm reporting it as a bug.

Please find the relevant logs below:

2024-01-29T11:37:50Z DBG decode.go:129:Decode() > Facebook server log: Write error response from server global_log=true

2024-01-29T11:37:50Z WRN decode.go:210:handleStoredProcedure() > Failed to set int64 field_index=2 field_name=TaskValue global_log=true struct_name=LSIssueNewTask val="{\"force_upsert\":false,\"use_open_messenger_transport\":false,\"metadata_only\":false,\"preview_only\":false,\"thread_fbid\":6...8,\"sync_group\":95}" val_type=string

2024-01-29T11:37:50Z TRC Meta send response action="handle matrix event" event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message response={"LSIssueNewTask":[{"Context":209,"QueueName":"invalid_send_task_queue","Unrecognized":{"10":0,"2":"{\"force_upsert\":false,\"use_open_messenger_transport\":false,\"metadata_only\":false,\"preview_only\":false,\"thread_fbid\":6...8,\"sync_group\":95}"}}],"LSMailboxTaskCompletionApiOnTaskCompletion":[{"TaskId":73}],"LSMarkOptimisticMessageFailed":[{"Message":"Couldn't send.","OTID":"7157698346855956522"}],"LSRemoveTask":[{"TaskId":74}],"LSTaskExists":[{"TaskId":73},{"TaskId":73},{"TaskId":73},{"TaskId":73},{"TaskId":73},{"TaskId":73},{"TaskId":73},{"TaskId":74},{"TaskId":74}],"LSUpdateMessagesOptimisticContext":[{"Unrecognized":{"0":73}}],"LSUpdateSubscriptErrorMessage":[{"Message":"Couldn't send.","OTID":"7157698346855956522","ThreadKey":100009247374828}],"LSUpdateThreadSnippet":[{"IsAdminSnippet":true,"Snippet":"Message failed to send","ThreadKey":100009247374828,"Unrecognized":{"7":false}}],"LSWriteCTAIdToThreadsTable":[{"ThreadKey":100009247374828}]} thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:50Z WRN Sending message failed action="handle matrix event" event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:50Z ERR Sending message metrics for event error="server rejected message: Couldn't send." event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message handling_step="Error sending" sender=@username:matrix.server.name thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:50Z DBG Sent message checkpoint message_checkpoint={"event_id":"$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY","event_type":"m.room.message","info":"server rejected message: Couldn't send.","message_type":"m.text","reported_by":"BRIDGE","retry_num":0,"room_id":"!vUTGHXtXdWONcrTDFL:matrix.server.name","status":"UNSUPPORTED","step":"REMOTE","timestamp":1706528270047}

2024-01-29T11:37:50Z DBG Request completed duration=65.162364 event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message handling_step="Error sending" method=PUT req_body={"typing":false} req_id=2785 response_length=2 response_mime=application/json sender=@username:matrix.server.name status_code=200 thread_id=100009247374828 thread_receiver=1...1 url=http://matrixserver:8008/_matrix/client/v3/rooms/%21vUTGHXtXdWONcrTDFL:matrix.server.name/typing/@facebook_1...8:matrix.server.name?user_id=%40facebook_1...8%3Amatrix.server.name

2024-01-29T11:37:50Z DBG Request completed action="handle meta read receipt" duration=63.017916 method=POST read_at_ms=1706528270047 read_up_to_ms=1706528269495 req_body={"com.beeper.fully_read.extra":{"fi.mau.double_puppet_source":"mautrix-meta"},"com.beeper.read.extra":{"fi.mau.double_puppet_source":"mautrix-meta"},"m.fully_read":"$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk","m.read":"$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk"} req_id=2786 response_length=2 response_mime=application/json sender_id=1...1 status_code=200 thread_id=100009247374828 thread_receiver=1...1 url=http://matrixserver:8008/_matrix/client/v3/rooms/%21vUTGHXtXdWONcrTDFL:matrix.server.name/read_markers?user_id=%40username%3Amatrix.server.name

2024-01-29T11:37:50Z DBG Sent read receipt to Matrix action="handle meta read receipt" event_id=$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk read_at_ms=1706528270047 read_up_to_ms=1706528269495 sender_id=1...1 thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:50Z DBG Starting handling of transaction content={"pdu":0,"unstable_edu":3,"unstable_to_device":0} transaction_id=1701

2024-01-29T11:37:50Z DBG Finished dispatching events from transaction transaction_id=1701

2024-01-29T11:37:50Z DBG Request completed duration=185.698493 event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message handling_step="Error sending" method=PUT req_body={"body":"\u003e \u003c@username:matrix.server.name\u003e Test 123 Test\n\n⚠ Your message was not bridged: server rejected message: Couldn't send.","format":"org.matrix.custom.html","formatted_body":"\u003cmx-reply\u003e\u003cblockquote\u003e\u003ca href=\"https://matrix.to/#/!vUTGHXtXdWONcrTDFL:matrix.server.name/$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY\"\u003eIn reply to\u003c/a\u003e \u003ca href=\"https://matrix.to/#/@username:matrix.server.name\"\u003e@username:matrix.server.name\u003c/a\u003e\u003cbr\u003eTest 123 Test\u003c/blockquote\u003e\u003c/mx-reply\u003e⚠ Your message was not bridged: server rejected message: Couldn\u0026#39;t send.","m.relates_to":{"m.in_reply_to":{"event_id":"$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY"}},"msgtype":"m.notice"} req_id=2787 response_length=59 response_mime=application/json sender=@username:matrix.server.name status_code=200 thread_id=100009247374828 thread_receiver=1...1 url=http://matrixserver:8008/_matrix/client/v3/rooms/%21vUTGHXtXdWONcrTDFL:matrix.server.name/send/m.room.message/mautrix-go_1706528270115250745_18?user_id=%40facebook_1...8%3Amatrix.server.name

2024-01-29T11:37:50Z DBG Timings for event event_id=$K9wbrRtuloOAI39TPCThcy2jAJbVf7bbmGuE6wTzFkY event_type=m.room.message handling_step="Error sending" sender=@username:matrix.server.name thread_id=100009247374828 thread_receiver=1...1 timings={"bridge":{"decrypt":"0s","init_receive":"197.8ms","queue":"0s","total_hs_to_portal":"198.8ms"},"portal":{"convert":"9.222µs","implicit_rr":"93ns","preproc":"182.443µs","total_send":"0s"}}

2024-01-29T11:37:50Z DBG Starting handling of transaction content={"pdu":1,"unstable_edu":0,"unstable_to_device":0} transaction_id=1703

2024-01-29T11:37:50Z DBG Finished dispatching events from transaction transaction_id=1703

2024-01-29T11:37:50Z DBG Sent message checkpoint message_checkpoint={"event_id":"$MnfCtuY2-ZblUfaiywgMxRUliYMlkjYIPLSnMUkDe_4","event_type":"m.room.message","message_type":"m.notice","reported_by":"BRIDGE","retry_num":0,"room_id":"!vUTGHXtXdWONcrTDFL:matrix.server.name","status":"SUCCESS","step":"BRIDGE","timestamp":1706528270347}

2024-01-29T11:37:51Z DBG Starting handling of transaction content={"pdu":0,"unstable_edu":1,"unstable_to_device":0} transaction_id=1704

2024-01-29T11:37:51Z DBG Finished dispatching events from transaction transaction_id=1704

2024-01-29T11:37:51Z DBG Creating task component=messagix label=21 payload={"last_read_watermark_ts":1706528271296,"sync_group":1,"thread_id":100009247374828} queueName=100009247374828 taskId=75 user_id=@username:matrix.server.name

2024-01-29T11:37:51Z DBG Updating sync groups LSExecuteFirstBlockForSyncTransaction=[{"CurrentCursor":"HCwAABbUmK4BFrKk7asGEwUWiuiVvuu8LQA","DatabaseId":1,"EpochId":7157693973903966250,"NextCursor":"HCwAABbWmK4BFrKk7asGEwUWiuiVvuu8LQA","SyncChannel":1,"SyncStatus":2}] LSUpsertSyncGroupThreadsRange=null component=messagix user_id=@username:matrix.server.name

2024-01-29T11:37:51Z INF Updated database by transaction... component=messagix database_id=1 new_cursor=HCwAABbWmK4BFrKk7asGEwUWiuiVvuu8LQA sendSyncParams=false syncChannel=1 user_id=@username:matrix.server.name

2024-01-29T11:37:51Z TRC Got new event table={"LSExecuteFinallyBlockForSyncTransaction":[{"EpochId":7157693973903966250,"SyncDatabaseId":1}],"LSExecuteFirstBlockForSyncTransaction":[{"CurrentCursor":"HCwAABbUmK4BFrKk7asGEwUWiuiVvuu8LQA","DatabaseId":1,"EpochId":7157693973903966250,"NextCursor":"HCwAABbWmK4BFrKk7asGEwUWiuiVvuu8LQA","SyncChannel":1,"SyncStatus":2}],"LSMarkThreadRead":[{"LastReadWatermarkTimestampMs":1706528271296,"ThreadKey":100009247374828}],"LSUpdateParentFolderReadWatermark":[{"ThreadKey":100009247374828,"Unrecognized":{"1":{"all_read":"","unread_plural":" nieuwe chatberichten","unread_singular":" nieuw chatbericht"}}}],"LSUpsertSequenceId":[{"LastAppliedMailboxSequenceId":1426987}],"LSWriteCTAIdToThreadsTable":[{"ThreadKey":100009247374828}]} user_id=@username:matrix.server.name

2024-01-29T11:37:51Z DBG Request completed action="handle meta read receipt" duration=25.939217 method=POST read_at_ms=1706528271797 read_up_to_ms=1706528271296 req_body={"com.beeper.fully_read.extra":{"fi.mau.double_puppet_source":"mautrix-meta"},"com.beeper.read.extra":{"fi.mau.double_puppet_source":"mautrix-meta"},"m.fully_read":"$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk","m.read":"$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk"} req_id=2788 response_length=2 response_mime=application/json sender_id=1...1 status_code=200 thread_id=100009247374828 thread_receiver=1...1 url=http://matrixserver:8008/_matrix/client/v3/rooms/%21vUTGHXtXdWONcrTDFL:matrix.server.name/read_markers?user_id=%40username%3Amatrix.server.name

2024-01-29T11:37:51Z DBG Sent read receipt to Matrix action="handle meta read receipt" event_id=$1EAN-dN4q2dzjPRK4Sg8OZU8slI_4EutEADpG9vp3bk read_at_ms=1706528271797 read_up_to_ms=1706528271296 sender_id=1...1 thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:52Z TRC Read receipt send response action="handle matrix receipt" event_id=$MnfCtuY2-ZblUfaiywgMxRUliYMlkjYIPLSnMUkDe_4 response={"LSRemoveTask":[{"TaskId":75}],"LSTaskExists":[{"TaskId":75},{"TaskId":75}],"LSWriteCTAIdToThreadsTable":[{"ThreadKey":100009247374828}]} thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:52Z DBG Read receipt sent action="handle matrix receipt" event_id=$MnfCtuY2-ZblUfaiywgMxRUliYMlkjYIPLSnMUkDe_4 read_watermark=2024-01-29T11:37:51.296Z thread_id=100009247374828 thread_receiver=1...1

2024-01-29T11:37:56Z TRC Got ping response component=messagix user_id=@username:matrix.server.name

Thank you for your attention to this matter. I am happy to provide any further information or clarification needed to resolve this issue. I appreciate the efforts put into developing and maintaining this integration.

 bug 
11:57:14
@github:maunium.netGitHub [mautrix/meta] tulir commented on issue #6: Meta Bridge Facebook Messenger Integration Issue with End-to-End Encryption:

It's not a bug. Encryption will be supported eventually

11:58:21
@github:maunium.netGitHub [mautrix/meta] tulir pushed 3 commits to main:
  • a459d342 Add support for incoming profile share messages
  • dd29ed96 Try adding support for connecting via messenger.com or fb tor
  • 687ecaf1 Add proxy support
13:32:31
@tulir:maunium.nettulir
In reply to @surak:gnomos.org
I'm also interested in this, I just had to reactivate my fb account and now I feel dirty
messenger might work now if you set the mode in the config appropriately
13:33:14
@tulir:maunium.nettulirI didn't actually test it so let me know if you do test13:33:34
@tulir:maunium.nettulir(I did test the tor option and it does seem to work, except it's extremely slow, but that might just be how tor works)13:34:10
@olmari:hacklab.fiSami OlmariTor is generally slow, because how it works practically13:37:20
@olmari:hacklab.fiSami Olmariboth latency and to much extent throughput also13:37:52
@surak:gnomos.orgMarco
In reply to @tulir:maunium.net
messenger might work now if you set the mode in the config appropriately
oh nice
13:40:54
@cos:hacklab.ficos Sami Olmari: did you happen to restart our bridge or something? Suddenly I got all the empty FB chats I left back. 13:41:40
@olmari:hacklab.fiSami Olmariyes13:42:02
@olmari:hacklab.fiSami Olmarimore so: updated it13:42:13
@on4bcy:on4bcy.beBastien Cabay (ON4BCY)Most of my chats are end2end encrypted 13:43:12
@cos:hacklab.ficoslooks like the bridge doesn't handle leaving chats properly. bridge restart sucks user back into them. 13:43:15
@surak:gnomos.orgMarco
In reply to @tulir:maunium.net
I didn't actually test it so let me know if you do test
Failed to log in: failed to prepare client: messagix-configs: failed to setup configs (failed to sync data via graphql for databases: 1, 2, 95: failed to unmarshal LSRequest response bytes into LSPlatformGraphQLLightspeedRequestQuery struct: invalid character 'o' in literal false (expecting 'a'))
13:45:10
@tulir:maunium.nettulir
In reply to @cos:hacklab.fi
looks like the bridge doesn't handle leaving chats properly. bridge restart sucks user back into them.
that is the proper handling of leaving chats
13:47:00
@tulir:maunium.nettulirotherwise users will accidentally leave rooms and complain when they can't find them13:47:17
@cos:hacklab.ficosthat doesn't sound right. users also don't want to be sucked back into chats they have left.13:48:58
@tulir:maunium.nettulirfb might be weird and include deleted chats in the inbox with some deleted flag, if that's the case then the flag needs to be handled in the bridge, but other than that chats just need to be deleted on the fb side13:50:32
@olmari:hacklab.fiSami Olmari

Which would need using the actual FB or Messenger side ;)

While I think too that leaving chat in Matrix side should.. well.. either leave the chat in FB side too, or do some other means to not just come back...

Maybe some happy middleground would be !fb leave-chat or whatever would be called to cater both ignorant user pampering and actually wanting to just leave the damn thing? =)

13:54:23
@tulir:maunium.nettuliroh yeah the bridge does know how to delete threads on fb, so it could be connected to a command13:59:19
@tulir:maunium.nettulirbut as long as they show up in the official web client, the bridge will bridge them too13:59:36
@tulir:maunium.nettulirincludes the "Facebook user" chats13:59:39
@olmari:hacklab.fiSami OlmariYes, I (also) agree that bridge needs to do as "1:1" mapping as possible for existing chats... I think mainly this hinges on what should be done when user leaves matrix-room, and/or if some command is warranted... 14:01:13
@cos:hacklab.ficosIMO message requests should be ignored by bridge. They are shown in separate place in fb web. 14:05:26
@cos:hacklab.ficosI cleaned about 100 message requests from local ladies wanting to meet me, I hope they won't come back 14:06:04

Show newer messages


Back to Room ListRoom Version: 10