Skip to content

Instantly share code, notes, and snippets.

@ethe
Created January 9, 2019 09:10
Show Gist options
  • Select an option

  • Save ethe/fa180236a3014bbd30f224e8cfc618b8 to your computer and use it in GitHub Desktop.

Select an option

Save ethe/fa180236a3014bbd30f224e8cfc618b8 to your computer and use it in GitHub Desktop.
In [5]: ---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/lib/python2.7/site-packages/thriftpy_cli/cmd.pyc in <module>()
----> 1 client.sync_user_data([calc_thrift.User(pass_id=12345678, phone='17600396522')])
/usr/local/lib/python2.7/site-packages/thriftpy/thrift.pyc in _req(self, _api, *args, **kwargs)
196 # wait result only if non-oneway
197 if not getattr(result_cls, "oneway"):
--> 198 return self._recv(_api)
199
200 def _send(self, _api, **kwargs):
/usr/local/lib/python2.7/site-packages/thriftpy/thrift.pyc in _recv(self, _api)
208
209 def _recv(self, _api):
--> 210 fname, mtype, rseqid = self._iprot.read_message_begin()
211 if mtype == TMessageType.EXCEPTION:
212 x = TApplicationException()
thriftpy/protocol/cybin/cybin.pyx in cybin.TCyBinaryProtocol.read_message_begin (thriftpy/protocol/cybin/cybin.c:6325)()
thriftpy/protocol/cybin/cybin.pyx in cybin.read_i32 (thriftpy/protocol/cybin/cybin.c:1546)()
thriftpy/transport/buffered/cybuffered.pyx in thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.c_read (thriftpy/transport/buffered/cybuffered.c:1881)()
thriftpy/transport/buffered/cybuffered.pyx in thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.read_trans (thriftpy/transport/buffered/cybuffered.c:1948)()
thriftpy/transport/cybase.pyx in thriftpy.transport.cybase.TCyBuffer.read_trans (thriftpy/transport/cybase.c:1472)()
/usr/local/lib/python2.7/site-packages/thriftpy/transport/socket.pyc in read(self, sz)
106 def read(self, sz):
107 try:
--> 108 buff = self.sock.recv(sz)
109 except socket.error as e:
110 if (e.args[0] == errno.ECONNRESET and
timeout: timed out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment