Skip to content

Instantly share code, notes, and snippets.

@dgouldin
Created August 11, 2012 22:17
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 dgouldin/3327545 to your computer and use it in GitHub Desktop.
Save dgouldin/3327545 to your computer and use it in GitHub Desktop.
librabbitmq misleading connection error message
In [1]: import librabbitmq
In [2]: connection = librabbitmq.Connection(userid='bad', password='bad')
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-2-23c4e6e59779> in <module>()
----> 1 connection = librabbitmq.Connection(userid='bad', password='bad')
/Users/dgouldin/virtualenv/djangocon2012/lib/python2.7/site-packages/librabbitmq/__init__.pyc in __init__(self, host, userid, password, virtual_host, port, channel_max, frame_max, heartbeat, lazy, **kwargs)
166 self._avail_channel_ids = array('H', xrange(self.channel_max, 0, -1))
167 if not lazy:
--> 168 self.connect()
169
170 def reconnect(self):
ConnectionError: Couldn't log in: Argument list too long
In [3]: connection = librabbitmq.Connection()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment