如何解决yowsup流:代码503错误?

我通过yowsup-cli为太多的数字运行存在订阅。但一段时间后,我得到流:错误代码=”503 “错误。这通常发生在15分钟后。我怎样才能解决这个问题?

我得到这个错误。

{
  "data": "D 2020-04-24 01:05:52,234 yowsup.layers.logger.layer - rx:\n<stream:error code=\"503\" />\nE 2020-04-24 01:05:52,235 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last):\n  File \"/usr/lib/python2.7/asyncore.py\", line 83, in read\n    obj.handle_read_event()\n  File \"/usr/lib/python2.7/asyncore.py\", line 449, in handle_read_event\n    self.handle_read()\n  File \"/var/www/html/yowsup/yowsup/layers/network/dispatcher/dispatcher_asyncore.py\", line 48, in handle_read\n    self.connectionCallbacks.onRecvData(data)\n  File \"/var/www/html/yowsup/yowsup/layers/network/layer.py\", line 107, in onRecvData\n    self.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/network/layer.py\", line 110, in receive\n    self.toUpper(data)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/noise/layer_noise_segments.py\", line 39, in receive\n    self.toUpper(bytes(data))\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/noise/layer.py\", line 181, in receive\n    self._flush_incoming_buffer()\n  File \"/var/www/html/yowsup/yowsup/layers/noise/layer.py\", line 169, in _flush_incoming_buffer\n    self.toUpper(self._wa_noiseprotocol.receive())\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/coder/layer.py\", line 21, in receive\n    self.toUpper(node)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/logger/layer.py\", line 14, in receive\n    self.toUpper(data)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/axolotl/layer_control.py\", line 35, in receive\n    self.toUpper(protocolTreeNode)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 194, in receive\n    s.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/axolotl/layer_receive.py\", line 35, in receive\n    self.toUpper(protocolTreeNode)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 79, in toUpper\n    self.__upper.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 194, in receive\n    s.receive(data)\n  File \"/var/www/html/yowsup/yowsup/layers/__init__.py\", line 130, in receive\n    recv(node)\n  File \"/var/www/html/yowsup/yowsup/layers/auth/layer_authentication.py\", line 67, in handleStreamError\n    raise NotImplementedError(\"Unhandled stream:error node:\n%s\" % node)\nNotImplementedError: Unhandled stream:error node:\n<stream:error code=\"503\" />\n\nD 2020-04-24 01:05:52,235 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close\nD 2020-04-24 01:05:52,235 yowsup.layers.network.layer - Disconnected",
  "deb": true
}

解决方案:

503 错误往往意味着服务器在那一刻无法响应。导致错误的原因有很多,但如果你只是想继续请求,你可以在服务器返回503错误时,有一个if语句,并在一会儿重做请求,直到它响应200。

给TA打赏
共{{data.count}}人
人已打赏
未分类

将一个用户的表导入到另一个Oracle SQL中。

2022-9-8 16:52:36

未分类

如何在React.JS中通过className让元素消失?

2022-9-8 16:52:38

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索