ebin123456 / py-amqplib

Automatically exported from code.google.com/p/py-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

TypeError: 'NoneType' object is not iterable #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The error below is raised in a number of situations where the connection to
the broker fails. One of the more easy to recreate is when the
authentication to the broker fails.

Another scenario is when the broker closes unexpectedly.

Ideally, one could handle both cases by catching a specific exception type.

Traceback (most recent call last):
  ...
  File "../src/amqplib/client_0_8/connection.py", line 140, in __init__
    (10, 30), # tune
  File "../src/amqplib/client_0_8/abstract_channel.py", line 89, in wait
    self.channel_id, allowed_methods)
  File "../src/amqplib/client_0_8/connection.py", line 203, in _wait_method
    self.method_reader.read_method()
TypeError: 'NoneType' object is not iterable

Original issue reported on code.google.com by g%rre.tt@gtempaccount.com on 18 Aug 2009 at 4:49

GoogleCodeExporter commented 9 years ago
I believe this is fixed with this commit

http://code.google.com/p/py-amqplib/source/detail?r=2c5cd0d459adf637dcc749c12add
c8906207ea0e

Are you still seeing problems using the latest version in the repository?

Original comment by barry.pe...@gmail.com on 20 Aug 2009 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by barry.pe...@gmail.com on 20 Aug 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Fix included in the new 0.6.1 release

Original comment by barry.pe...@gmail.com on 29 Aug 2009 at 4:08

GoogleCodeExporter commented 9 years ago
Sorry for the delay -- I must have disabled Google notification so didn't see 
this.

I'm seeing socket errors now, which I believe is the same behavior as the Java 
client.

It would be a different ticket, but it would be nice to get a more specific 
error
when authentication failed. Does the broker use close the connection without 
any sort
of response that the credentials are invalid?

Original comment by g%rre.tt@gtempaccount.com on 1 Sep 2009 at 12:00

GoogleCodeExporter commented 9 years ago
Yes, RabbitMQ (at least the last time I looked) just closes the socket without
sending any kind of response or error codes or explanation.

Original comment by barry.pe...@gmail.com on 1 Sep 2009 at 12:29