-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Exception in subscribe - google cloud pubsub 0.35.4 #5792
Comments
Sorry, maybe this is my mistake, I haven't called Now, I'm trying to above program with |
However, if I can, I want to handle such error on the user code 💦 |
Yeah, we should fix that codepath so it doesn't totally choke, but for sure the biggest issue here is not If you want to be able to handle errors, you need to keep track of the future returned by
|
There's a rare case where the stream can be restarted while the streaming pull manager is shutting down. This causes get_initial_request to be called while the manager is in a bad state, which will trigger an AttributeError when attempting to read the list of outstanding Ack IDs from the leaser. Closes #5792
There's a rare case where the stream can be restarted while the streaming pull manager is shutting down. This causes get_initial_request to be called while the manager is in a bad state, which will trigger an AttributeError when attempting to read the list of outstanding Ack IDs from the leaser. Closes #5792
Thank you for replying. And thank you for the snippets! I'll also try to use when I want to block messages. |
…is#5803) There's a rare case where the stream can be restarted while the streaming pull manager is shutting down. This causes get_initial_request to be called while the manager is in a bad state, which will trigger an AttributeError when attempting to read the list of outstanding Ack IDs from the leaser. Closes googleapis#5792
Summary:
Hi, thank you for the awesome Google Cloud Pub/Sub python library. 😃
I have a question about this library.
subscriber
process by using Google Cloud Pub/Sub.logger
andtry~except
, however, I couldn't handle to logging them.Environment:
Python 3.6.5 :: Anaconda, Inc..
)0.35.4
Warning and Error Stdout:
requirements.txt:
Program:
If you want more info, please let me know.
The text was updated successfully, but these errors were encountered: