I had an uncaught IOError exception in my Django project and the notification made it to New Relic but nothing appeared in Sentry. I've got the json from the logs and can't see any weird characters in it. (I would have to sanitize it a bit before I could post it anywhere public.)
This is the traceback I found in the logs:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 162, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 62, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python2.7/dist-packages/newrelic-2.54.0.41/newrelic/hooks/external_urllib2.py", line 15, in _nr_wrapper_opener_director_open_
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1181, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 979, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/dist-packages/newrelic-2.54.0.41/newrelic/hooks/external_httplib.py", line 35, in httplib_endheaders_wrapper
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 833, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
I had an uncaught IOError exception in my Django project and the notification made it to New Relic but nothing appeared in Sentry. I've got the json from the logs and can't see any weird characters in it. (I would have to sanitize it a bit before I could post it anywhere public.)
This is the traceback I found in the logs: