Polyconseil / aioamqp

AMQP implementation using asyncio
Other
280 stars 88 forks source link

Operation basic.publish caused a connection exception unexpected_frame #76

Closed mastak closed 6 years ago

mastak commented 8 years ago

I have a big stream of data, and firstly I tried to push one data item in one publish call. But periodically happened this error:

Server closed connection: UNEXPECTED_FRAME - expected content body, got non content body frame instead, code=505, class_id=60, method_id=40

In server logs:

Error on AMQP connection <0.11901.881> (172.30.0.83:56306 -> 172.17.0.26:5672, vhost: 'sync', user: 'producer', state: running), channel 1:
operation basic.publish caused a connection exception unexpected_frame: "expected content body, got non content body frame instead"

It was about 1000 - 10 000 items / sec.

Then I started making groups and send it (100 - 300 items / sec). An error has gone. Is it has limit? :) How can I fix it?

dzen commented 8 years ago

Hi @mastak,

Is this issue related to the encoding error ? c.f. https://github.com/Polyconseil/aioamqp/pull/78 ?

mastak commented 8 years ago

Hi @dzen, I don't know. I fixed it by grouping data items in batch.)

I would like to test without batch next week,if you don't mind.

dzen commented 8 years ago

Sure, we all have a lots of work somewhere else ;)

dzen commented 6 years ago

Fixed with 09ec24d88a3fdf5848050a15352efd45cb92ac67

dnp1 commented 6 years ago

This should be closed since the new release 0.11.0 resolved it.

RemiCardona commented 6 years ago

Thanks @dnp1 for the heads up. Closing.