-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error: Invalid attachment id (509) #73
Comments
Can't reproduce. Does it happen with group chats only, or private chats too? |
as far as I've seen this is just in group chats On Sat, Mar 12, 2016 at 9:38 PM, dx [email protected] wrote:
"Always love, hate will get you every time" - Nada Surf |
Actually, I just had a friend crash my instance via private message, Trying to get a test case out of her and have her try it against an instance with debugging on. |
If you have any recommendations beyond BITLBEE_DEBUG_FACEBOOK=1 in the env let me know |
I hit this issue the other night, but did not capture the log. And I was just unable to recreate the issue. Does this happen reliably for you? |
It does, but I think I need to recreate my entire stack - the simple test rj On Sun, Mar 20, 2016 at 1:44 PM, James Geboski [email protected]
"Always love, hate will get you every time" - Nada Surf |
Got this one {
"deltas": [
{
"deltaNewMessage": {
"messageMetadata": {
"threadKey": {
"otherUserFbId": "..."
},
"messageId": "...",
"offlineThreadingId": "...",
"actorFbId": "...",
"timestamp": 1461827321444,
"tags": [
"source:chat:web"
]
},
"attachments": [
{
"id": "10208007008265775",
"mimeType": "application/pdf",
"filename": "009de6b75d866744506fa85e216f84b7_labels.pdf",
"fbid": 10208007008265775,
"fileSize": 22190
}
]
}
}
],
"firstDeltaSeqId": 19172,
"lastIssuedSeqId": 19172
}
May be worth noting that 10208007008265775 is just long enough to not fit in a float (converting to float and back to int results in 10208007008265776, that's +1), but that's probably not the issue here. |
It's using FQL
|
This seems to be random, some attachments of the same type (not just pdf as above, also images) sometimes also fail to be fetched. The float thing is a red herring, ignore that. We seem to make that getAttachment call for every image and attachment, but latest orca doesn't need them for images (the full urls are included in the thrift payload, i guess). Also it only does that FQL query when attempting to download attachments, not when first displaying them, and never for normal images. This might mean I'll have to update the protocol to use the new mqtt topics, but in the meantime I could just prevent the reconnection and show an error message to the conversation instead. |
edit: Nevermind, saw one of those again. |
This is handled by e094e5a currently in the development branch |
I am still getting this. It happens intermittently when receiving voice messages. I guess I should make my own server to help debugging it, as I currently use someone else's and I can't enable debugging on it. |
Nah, don't worry it's known and not fixed, it just won't disconnect you anymore. |
@dequis Google brough me here. I think we are dealing with the same problem (but it happens [also] for images). Observation: when I try the same call a few minutes later, it returns correct data. Maybe a simple 10-100ms delay or few repeats in case of 509 would solve this. Didn't try it yet, so can't say what delay is necessary and whether the simpler approach is "good enough". |
Hi, 5 years later this is happening to me with messages between me and 1 other: my girlfriend , really weird... It happens when I try to send my location |
Hello, for anyone looking to manage this error (for a bot transcribing audios for example), I created a fork where I corrected the 509 problem with attachments ids: https://github.com/lderougemont/bitlbee-facebook . To reexplain the problem: facebook sends the attachment id before adding the file to its database, and asking for the link too fast finishes on this 509 error. Two solutions (on two branches):
The Note: may need some improvements (sol°2 may encounter infinite loop ?, change sleep duration ?, do not transmit 509 errors to the final user/bitlbee ?, I didn't tested the changes I made for To install, just follow the manual install guide in the README ( Also, I don't do a pull request as I don't know which solution to keep (and if anyone is mainting this repo). |
one of my group chats likes to include...notably, gif keyboard inline with their group chat. this causes the entire mqtt session to disconnect/reconnect with the following messages in &bitlbee:
facebook - Error: Invalid attachment id (509)
facebook - Signing off.
facebook - Reconnecting in 5 seconds..
facebook - Logging in: Fetching contacts
and basically it's like starting facebook back up again.
I'm running the v1.0.0 tagged code against the bitlbee 3.4.2 branch here: https://github.com/bitlbee/bitlbee/tree/release-3.4.2
let me know if there's anything I can do to help debug this
The text was updated successfully, but these errors were encountered: