Skip to content

Instantly share code, notes, and snippets.

@swinton
Created May 15, 2013 20:05
Show Gist options
  • Select an option

  • Save swinton/5586931 to your computer and use it in GitHub Desktop.

Select an option

Save swinton/5586931 to your computer and use it in GitHub Desktop.
✎ v runworker
Warning: Permanently added 'emmasocial-streaming.local,192.168.33.43' (RSA) to the list of known hosts.
[*] Waiting for tasks. To exit press CTRL+C
INFO: 2013-05-15 22:00:20,434 - pika.adapters.base_connection - base_connection - _create_and_connect_to_socket - 174 - Connecting fd 3 to localhost:5672
================================================================================
INFO: 2013-05-15 22:00:20,477 - pika.adapters.blocking_connection - blocking_connection - _adapter_connect - 232 - Adapter connected
================================================================================
[*] Consuming from amq.gen-aO47xdlh0Zh5WQW-EQKz-w queue
[*] Consuming from start.consumer queue
INFO: 2013-05-15 22:00:30,770 - root - base - start_a_consumer - 417 - Starting consumer id steveWINton
================================================================================
[x] Added consumer 'steveWINton' consumers: 1
INFO: 2013-05-15 22:00:30,772 - root - base - run - 256 - Connecting to userstream.twitter.com on port 443
================================================================================
INFO: 2013-05-15 22:00:31,542 - root - consumer - _notify - 42 - Connected to stream steveWINton
================================================================================
[*] Received {"friends":[14368048,80598549,14152365,14370159,14... for steveWINton.
[*] Received {"created_at":"Wed May 15 20:00:44 +0000 2013","id... for steveWINton.
INFO: 2013-05-15 22:01:45,547 - root - base - run - 285 - The read operation timed out
================================================================================
Traceback (most recent call last):
File "streaming/base.py", line 273, in run
self._consume_stream()
File "streaming/base.py", line 225, in _consume_stream
data = self.get_data()
File "/home/vagrant/emmasocial/streaming/consumer.py", line 51, in get_data
line = self._readline_chunked()
File "streaming/base.py", line 101, in _readline_chunked
c = self._read_chunked(1)
File "streaming/base.py", line 73, in _read_chunked
line = self._safe_readline()
File "streaming/base.py", line 60, in _safe_readline
c = self.sock.recv(1)
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/ssl.py", line 232, in recv
return self.read(buflen)
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/ssl.py", line 116, in read
wait_read(self.fileno(), timeout=self.timeout, timeout_exc=_SSLErrorReadTimeout, event=self._read_event)
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/socket.py", line 169, in wait_read
switch_result = get_hub().switch()
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/hub.py", line 164, in switch
return greenlet.switch(self)
SSLError: The read operation timed out
INFO: 2013-05-15 22:01:45,807 - root - base - run - 256 - Connecting to userstream.twitter.com on port 443
================================================================================
INFO: 2013-05-15 22:02:00,839 - root - base - run - 285 - [Errno 67] request timed out
================================================================================
Traceback (most recent call last):
File "streaming/base.py", line 264, in run
self.sock.connect((self.host, self.port))
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/ssl.py", line 364, in connect
socket.connect(self, addr)
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/socket.py", line 363, in connect
address = gethostbyname(address[0]), address[1]
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/socket.py", line 690, in gethostbyname
_ttl, addrs = resolve_ipv4(hostname)
File "/home/vagrant/.virtualenvs/emmasocial/lib/python2.7/site-packages/gevent/dns.py", line 59, in resolve_ipv4
raise DNSError(result)
DNSError: [Errno 67] request timed out
INFO: 2013-05-15 22:02:01,347 - root - base - run - 256 - Connecting to userstream.twitter.com on port 443
================================================================================
INFO: 2013-05-15 22:02:02,173 - root - consumer - _notify - 42 - Connected to stream steveWINton
================================================================================
[*] Received {"friends":[14368048,80598549,14152365,14370159,14... for steveWINton.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment