Skip to content
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

FYI: New Relic Python instrumentation breaks the PubSub layer with async consumers #368

Closed
drewbrew opened this issue Jun 28, 2023 · 1 comment

Comments

@drewbrew
Copy link

There's nothing you can or should do here, but I just wanted to bring this bug to your attention (and anyone who may be googling why a 'coroutine' object has no attribute 'subscribed': newrelic/newrelic-python-agent#818

TLDR with this setup:

  • New Relic agent 8.6.0 to 8.8.0
  • Channels configured to use the Redis PubSub backend for the channel layer
  • Async consumers
  • Daphne serving websockets behind nginx

When you try to connect to the websocket, the client gets disconnected immediately because of an AttributeError in _do_receiving() at the lookup to self._pubsub.subscribed.

The workaround is to downgrade the New Relic agent to 8.5.0.

@carltongibson
Copy link
Member

Thanks for the post @drewbrew. That'll save a few folks a few cycles no doubt 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants