diff options
author | dequis <dx@dxzone.com.ar> | 2016-06-02 21:04:50 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-06-02 21:04:50 -0300 |
commit | e094e5ac91f61d526cc12c0fc01709968c7a5d20 (patch) | |
tree | 385e85dc4afc274f8fa08436aa82235203200fca /facebook/facebook-api.h | |
parent | 4efa3977cdaa714738dd01c8f33c459a3a2b89d0 (diff) | |
download | bitlbee-facebook-e094e5ac91f61d526cc12c0fc01709968c7a5d20.tar.gz bitlbee-facebook-e094e5ac91f61d526cc12c0fc01709968c7a5d20.tar.bz2 bitlbee-facebook-e094e5ac91f61d526cc12c0fc01709968c7a5d20.tar.xz |
Prevent disconnections on 509 errors, "Invalid attachment id"
I'm still not sure about the origin of these errors (I suspect it's a
race condition between servers), but it's going to be fixed properly in
the future when the sync protocol is updated and doing HTTP requests to
get the attachment URL is no longer required (newer orca versions only
do HTTP requests to get the url of file attachments, everything else is
included in the MQTT stream)
Diffstat (limited to 'facebook/facebook-api.h')
-rw-r--r-- | facebook/facebook-api.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index 2da2977..5e17e98 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -341,6 +341,7 @@ typedef struct _FbApiUser FbApiUser; * @FB_API_ERROR_GENERAL: General failure. * @FB_API_ERROR_AUTH: Authentication failure. * @FB_API_ERROR_QUEUE: Queue failure. + * @FB_API_ERROR_NONFATAL: Other non-fatal errors. * * The error codes for the #FB_API_ERROR domain. */ @@ -348,7 +349,8 @@ typedef enum { FB_API_ERROR_GENERAL, FB_API_ERROR_AUTH, - FB_API_ERROR_QUEUE + FB_API_ERROR_QUEUE, + FB_API_ERROR_NONFATAL } FbApiError; /** |