Closed LanceOlsen closed 6 years ago
Thanks for the report @LanceOlsen. We'll work on getting this fixed.
Hey @LanceOlsen, I'm looking into this. I'm not able to reproduce it on my end, so I'd like to get some more information from you to see if we can track this down. Can you please provide the answers to the following:
api.py
?__init__.py
has the honeybadger.configure
line? Is it /root/my_app/__init__.py
?api.py
directly, or some other script that then imports api.py
?Thanks!
Closing this out due to lack of response. Feel free to reopen if you're still having this issue!
I also encountered the same problem. The problem is that if you try to call honeybadger.notify
from a different thread than the one the global honeybadger object was created, the thread local variables disappear. Here's a script to reproduce it:
import threading
from honeybadger import honeybadger
def notifier():
try:
raise ValueError('Failure')
except ValueError as e:
honeybadger.notify(e)
honeybadger.configure(api_key='test')
notify_thread = threading.Thread(target=notifier)
notify_thread.start()
@ifoukarakis thanks for the sample! I'll look into getting this fixed up as soon as I can.
I am running a Flask app, and using
notify
in anerrorhandler
decorator:In the
__init__.py
file for this app I have:I'm getting the following error: