【问题标题】:Firebase with python-firebase throws up "Connection reset by peer" (Celery + gevent involvement)带有 python-firebase 的 Firebase 抛出“由对等方重置连接”(Celery + gevent 参与)
【发布时间】:2013-09-25 16:44:25
【问题描述】:

我正在使用python-firebase 来记录我的堆栈中的点击次数和其他事件数据。它工作正常,但时不时地抛出这个堆栈跟踪:

'ConnectionError(MaxRetryError("HTTPSConnectionPool(host=\'somebase.firebaseio.com\',
port=443): Max retries exceeded with url: /campaigns/79/clicked.json
(Caused by <class \'socket.error\'>: [Errno 104] Connection reset by peer)",),)'

这通常发生在负载高峰期,但我知道我没有超过开发者计划中可用的 50 个最大连接数:

更多数据:

点击计数更新发生在使用 Celery 和 gevent 的任务队列中。会不会是Gevent引起的?

更新:

另一个错误:

Task core.campaign.tasks.process_entry_click with id 
932df1ff-62a4-4d24-b491-b9b4921a2372 raised exception:
"SSLError(SSLError(SSLError('The read operation timed out',),),)"

【问题讨论】:

    标签: python python-2.7 celery firebase gevent


    【解决方案1】:

    这可能在服务器代码推送或停机期间发生(记录在 https://twitter.com/FirebaseStatus) - 最好捕获此类异常并在服务器再次响应时重试。

    【讨论】:

      猜你喜欢
      • 2017-03-20
      • 2020-02-02
      • 2019-12-07
      • 1970-01-01
      • 2014-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多