Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created April 20, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayhem/0bce8b8f1aa08270c9fe16cf4661cb7a to your computer and use it in GitHub Desktop.
Save mayhem/0bce8b8f1aa08270c9fe16cf4661cb7a to your computer and use it in GitHub Desktop.
web_1 | 2020-04-20 16:22:41,691 ERROR Cannot publish to rabbitmq channel: TypeError / heap argument must be a list
web_1 | Traceback (most recent call last):
web_1 | File "/code/listenbrainz/listenbrainz/webserver/views/api_tools.py", line 336, in publish_data_to_queue
web_1 | channel.exchange_declare(exchange=exchange, exchange_type='fanout')
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 2345, in exchange_declare
web_1 | self._flush_output(declare_ok_result.is_ready)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 1292, in _flush_output
web_1 | *waiters)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 477, in _flush_output
web_1 | result.reason_text)
web_1 | pika.exceptions.ConnectionClosed: (505, 'UNEXPECTED_FRAME - expected content body, got non content body frame instead')
web_1 |
web_1 | During handling of the above exception, another exception occurred:
web_1 |
web_1 | Traceback (most recent call last):
web_1 | File "/code/listenbrainz/listenbrainz/webserver/views/api_tools.py", line 342, in publish_data_to_queue
web_1 | properties=pika.BasicProperties(delivery_mode=2, ),
web_1 | File "/code/listenbrainz/listenbrainz/webserver/rabbitmq_connection.py", line 100, in __exit__
web_1 | self.pool.release(self)
web_1 | File "/code/listenbrainz/listenbrainz/webserver/rabbitmq_connection.py", line 70, in release
web_1 | if connection.is_open:
web_1 | File "/code/listenbrainz/listenbrainz/webserver/rabbitmq_connection.py", line 129, in is_open
web_1 | self.connection.process_data_events()
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 751, in process_data_events
web_1 | with _IoloopTimerContext(time_limit, self._impl) as timer:
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 188, in __enter__
web_1 | self._callback_result.signal_once)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/base_connection.py", line 112, in add_timeout
web_1 | return self.ioloop.add_timeout(deadline, callback_method)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 364, in add_timeout
web_1 | return self._timer.call_later(deadline, callback_method)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 199, in call_later
web_1 | heapq.heappush(self._timeout_heap, timeout)
web_1 | TypeError: heap argument must be a list
web_1 | 2020-04-20 16:22:41,693 ERROR Cannot publish to rabbitmq channel: FileNotFoundError / [Errno 2] No such file or directory
web_1 | Traceback (most recent call last):
web_1 | File "/code/listenbrainz/listenbrainz/webserver/views/api_tools.py", line 342, in publish_data_to_queue
web_1 | properties=pika.BasicProperties(delivery_mode=2, ),
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 2120, in basic_publish
web_1 | mandatory, immediate)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 2207, in publish
web_1 | self._flush_output()
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 1292, in _flush_output
web_1 | *waiters)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 458, in _flush_output
web_1 | self._impl.ioloop.poll()
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 495, in poll
web_1 | self._poller.poll()
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 1114, in poll
web_1 | self._dispatch_fd_events(fd_event_map)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 831, in _dispatch_fd_events
web_1 | handler(fileno, events)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/base_connection.py", line 407, in _handle_events
web_1 | self._manage_event_state()
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/base_connection.py", line 539, in _manage_event_state
web_1 | self.ioloop.update_handler(self.socket.fileno(), self.event_state)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 446, in update_handler
web_1 | self._poller.update_handler(fileno, events)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 639, in update_handler
web_1 | events_to_set=events_set)
web_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/select_connection.py", line 1152, in _modify_fd_events
web_1 | self._poll.modify(fileno, events)
web_1 | FileNotFoundError: [Errno 2] No such file or directory
web_1 | 2020-04-20 16:22:41,706 INFO 172.18.0.1 - - [20/Apr/2020 16:22:41] "POST /1/submit-listens HTTP/1.1" 503 -
web_1 | 2020-04-20 16:22:41,707 INFO 172.18.0.1 - - [20/Apr/2020 16:22:41] "POST /1/submit-listens HTTP/1.1" 503 -
web_1 | 2020-04-20 16:22:41,709 INFO Created channel=1
web_1 | 2020-04-20 16:22:41,723 INFO 172.18.0.1 - - [20/Apr/2020 16:22:41] "POST /1/submit-listens HTTP/1.1" 200 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment