Python agent throwing noisy deprecation warning in logs

Hi there,

I’m noticing noisy (one every 10s) deprecation warnings which appear to be coming from the newrelic python agent.:

[2020-07-30 15:25:17,338] DEBUG    [application.py:1264]: Snapshotting metrics for harvest of '<redacted>'.
[2020-07-30 15:25:17,338] DEBUG    [application.py:1718]: Completed harvest for '<redacted>' in 0.00 seconds.
[2020-07-30 15:25:17,338] DEBUG    [agent.py:591]: Completed flexible harvest of application data in 0.00 seconds.
/usr/local/lib/python3.6/contextlib.py:99: DeprecationWarning: generator 'common_exception_handling' raised StopIteration
  self.gen.throw(type, value, traceback)

Version:
New Relic Python Agent (5.14.1.144)

Would appreciate any feedback on how to fix this.

Hello Sandeep!

I took a look at the error you’re seeing and it looks like it’s coming from Python and not from New Relic. Please see this article I found here: https://github.com/getsentry/raven-python/issues/1296

Cheers!