-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NoneType' object has no attribute 'body_size' #823
Comments
Where / how do you get that error message? Could you please provide more details on how to reproduce this? Providing code that reproduces this issue reliably would help us diagnose and fix this issue quickly. |
Can I email you instead of posting the code here? The code may be unusable without the publisher code, but most errors have occurred overnight when there is no activity on any of the channels, so it might be worthwhile just running the receiver and seeing what happens. |
What would be most helpful is a complete set of code that reproduces the issue - both sending and receiving. People have limited time to spend on Pika support so anything that can be done to shorten the diagnosis process is greatly appreciated. |
I'll see what I can do but this will be next week. I need to sanitise the code first to remove any proprietary elements while keeping it still fully functional. This is also a part of a larger production system, with an external configuration server containing routing keys to be listened to, and I need to import this part to publisher and subscriber with static data. I will let you know if I manage to actually do all that. I understand your resources are limited, thanks for replying so quickly. In my particular case, I have built a mechanism to restart the listener as soon as it exits for any reason. It will do. I just wanted to report this as I use Pika a lot and this is the only time I have encountered any stability issues. |
Thanks! No hurry at all. I'll see what I can figure out on my end as well when I have time. |
@lukebakken, two additional items that would help greatly is if the user provided both of the following:
|
Also, a very common problem is when users use the same pika connection from more than one thread. Sometimes they are not even aware that their app is accessing the same connection (or channels from the same connection instance) from more than one thread. |
This may actually be a threading issue. I thought each thread had its own Pika connection but it appears one of them is sharing with the main thread. Feel free to close this, the explanation seems plausible. |
Thanks for the update @hannuvisti ! |
My start_consuming loop has started crashing to this occasionally. I get the above error message and immediately afterwards an exception BodyTooLongError. The program works most of the time and crashes to this about once a day. The program in question opens a channel, connects to an exchange and subscribes to 2-3 routing keys.
This is Pika 0.10.0 on Ubuntu 16.04.
The text was updated successfully, but these errors were encountered: