Closed joshuap closed 4 years ago
Im also getting this issue on windows 10 with flask.
from honeybadger.contrib import FlaskHoneybadger
FlaskHoneybadger(app, report_exceptions=True)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Programme\Python38\Lib\site-packages\flask\app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)
File "D:\Programme\Python38\Lib\site-packages\flask\app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "D:\Programme\Python38\Lib\site-packages\flask\app.py", line 1858, in handle_exception
got_request_exception.send(self, exception=e)
File "D:\Programme\Python38\Lib\site-packages\blinker\base.py", line 266, in send
return [(receiver, receiver(sender, **kwargs))
File "D:\Programme\Python38\Lib\site-packages\blinker\base.py", line 266, in <listcomp>
return [(receiver, receiver(sender, **kwargs))
File "D:\Programme\Python38\Lib\site-packages\honeybadger\contrib\flask.py", line 172, in _handle_exception
honeybadger.notify(exception)
File "D:\Programme\Python38\Lib\site-packages\honeybadger\core.py", line 52, in notify
self._send_notice(exception, context=merged_context)
File "D:\Programme\Python38\Lib\site-packages\honeybadger\core.py", line 22, in _send_notice
payload = create_payload(exception, exc_traceback, config=self.config, context=context)
File "D:\Programme\Python38\Lib\site-packages\honeybadger\payload.py", line 102, in create_payload
'server': server_payload(config),
File "D:\Programme\Python38\Lib\site-packages\honeybadger\payload.py", line 68, in server_payload
loadavg = os.getloadavg()
AttributeError: module 'os' has no attribute 'getloadavg'
Thanks for the traceback, @Aulig. @demsullivan could you look into supporting Windows?
For future reference, this was released in 0.3.0.
A customer emailed in to say that they are getting an error when loading honeybadger-python under Windows.
Code:
Result: