bitlbee / bitlbee-facebook

Facebook protocol plugin for BitlBee
GNU General Public License v2.0
279 stars 49 forks source link

Cannot connect: Login error: ERROR_QUEUE_OVERFLOW #180

Closed thorgrin closed 5 years ago

thorgrin commented 5 years ago

Today, I started getting this error:

14:53:37 <@root> facebook - Logging in: Authenticating                                                                                                                                                                         
14:53:38 <@root> facebook - Logging in: Fetching contacts
14:53:39 <@root> facebook - Logging in: Connecting
14:53:40 <@root> facebook - Login error: ERROR_QUEUE_OVERFLOW                                                                                                                                                                  
14:53:40 <@root> facebook - Logging in: Signing off..                                                                                                                                                                          
14:53:40 <@root> facebook - Logging in: Reconnecting in 15 seconds..

I'm on Ubuntu 18.04.1 and the plugin is installed from its universe repo:

aptitude show bitlbee-plugin-facebook
Package: bitlbee-plugin-facebook
Version: 1.1.2-1
State: installed
Automatically installed: no
Priority: optional
Section: universe/net
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 154 k
Depends: bitlbee (>= 3.4) | bitlbee-libpurple (>= 3.4), libglib2.0-0 (>= 2.37.3), libjson-glib-1.0-0 (>= 0.14), libc6 (>= 2.14)
Provides: bitlbee-facebook

Is this a known problem that can be solved by compiling latest version from source, or something new? Thanks you.

liskin commented 5 years ago

Seems related to https://github.com/bitlbee/bitlbee-facebook/issues/129#issuecomment-451075814

thorgrin commented 5 years ago

For the record, I've tried the code from development branch, but the problem is the same.

mijofa commented 5 years ago

I've been getting the same since ~9:30am Thursday (2 days & 3hrs ago) I'm running on a Debian Jessie system, I was running from the old jgeboski apt repo, but to try and fix this problem I compiled directly from the source code here and the symptoms didn't change at all.

tgerczei commented 5 years ago

Same here, for the last few days in a row now. Also tried re-compiling everything from master as well as purging any caches to no avail.

NPKJI commented 5 years ago

I did a debug-log and found several messages about upgrading to a new version of messenger:

Thank you for using Messenger. We regret to inform you that starting today, March 29, the version of the app you're using will no longer be supported and will no longer allow you to send and receive messages. To continue using Messenger, please update your Messenger app to the latest version: https:\/\
/play.google.com\/store\/apps\/details?id=com.facebook.orca If your phone does not support the newest versions of Messenger, you have two options: 1) You can install Facebook Lite to access your messages. Facebook Lite is the lightweight version of Facebook includes messaging, is fast, uses less data and works in slower network conditions. You can install it
 from here: https:\/\/fb.me\/bTOyGFpIKf3j7N 2) We recommend going to https:\/\/m.facebook.com\/messages on your mobile browser. Thanks, The Messenger Team

This was part of a JSON response, and looked like it was part of a chat

I'm not sure what's sensitive information so I've left the rest of the log off.

FWIW, since I'm running with libpurple, I tried installing purple-facebook and ran into this issue: https://github.com/dequis/purple-facebook/issues/449 purple-facebook doesn't seem to get as far into the login process before stopping (I get login notification emails from using bitlbee-facebook but I don't get them from purple-facebook)

thorgrin commented 5 years ago

I've update user agent in facebook-api.h to

#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/192.0.0.31.101;FBBV/14477681]"

And it connects, sends and receives messages. Maybe something else, like groupchats, is broken, but I can live with it as a workaround.

dequis commented 5 years ago

Oh. Neat. Thanks. I applied that in https://github.com/bitlbee/bitlbee-facebook/commit/7682a3560c737fbbbd7cdf7a5b640bfb3242ec3c

It's very likely it's just that.

thorgrin commented 5 years ago

Should I close the issue or wait for the packages to come out?

dequis commented 5 years ago

I usually like to keep things open for a while for visibility. I do intend to make a new versioned release soonish.

brobostigon commented 5 years ago

i am using ubuntu 18.04 and just updated to "bitlbee-facebook (20190107~7682a35~323)", and still receive the "Login error: ERROR_QUEUE_OVERFLOW" error, so the above fix has not resolved it.

dequis commented 5 years ago

Just to be sure: restart bitlbee daemon, reconnect your irc client

brobostigon commented 5 years ago

i restarted bitlbee, but did not reconnect, and reconnecting resolved it.

dequis commented 5 years ago

Released v1.2.0 with the fix for this

Note that the general error ("ERROR_QUEUE_OVERFLOW") can potentially have other causes unrelated to this issue so it might still appear here in the future.

If you're using v1.2.0 or higher and this happens, please open another issue instead of adding comments here.