[rabbitmq-discuss] py-amqplib doesn't like Rabbit user refusals

Jason J. W. Williams jasonjwwilliams at gmail.com
Mon Feb 2 22:54:58 GMT 2009


That explains the error then. py-amqplib is calling a next_frame, but
there is no data.

-J

On Mon, Feb 2, 2009 at 3:47 PM, Matthias Radestock <matthias at lshift.net> wrote:
> Jason,
>
> Jason J. W. Williams wrote:
>>
>> It appears that py-amqplib really doesn't like it when you try to log
>> on to a vhost with a user that lacks authorization. Instead of
>> specific exception, a struct.error exception is raised with this
>> traceback:
>> [...]
>> The RabbitMQ side reports a rather sane error:
>>
>> {channel0_error,starting,
>>                {amqp,access_refused,"login refused for user 'argus'",
>>                      'connection.start_ok'}}
>>
>> Is py-amqplib just not set up to cleanly handle user refusals, or is
>> this an unknown bug?
>
> The server does not pass any information to the client in this case. That is
> a requirement of the spec. See section 2.2.4 of the AMQP 0-9-1 spec: "prior
> to sending or receiving Open or Open-Ok, a peer that detects an error MUST
> close the socket without sending any further data."
>
>
> Matthias.
>




More information about the rabbitmq-discuss mailing list