getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

raven.AsyncWorker: Sentry responded with an error: timed out #1290

Closed 99 closed 2 years ago

99 commented 5 years ago

Hi, Trying to add context.sentry.captureMessage to one of the places in our Python code and after deploying it I get too many of the below errors. It seems like Sentry server is not available. I tried to search more about raven.AsyncWorker:sentry.errors but didn't find much help online. I can share more information but not sure what can be helpful in this case and how to debug this failure.


Traceback (most recent call last):#015
 File "/usr/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync#015
   super(ThreadedHTTPTransport, self).send(data, headers)#015
 File "/usr/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send#015
   ca_certs=self.ca_certs,#015
 File "/usr/lib/python2.7/dist-packages/raven/utils/http.py", line 66, in urlopen#015
   return opener.open(url, data, timeout)#015
 File "/usr/lib/python2.7/urllib2.py", line 404, in open#015
   response = self._open(req, data)#015
 File "/usr/lib/python2.7/urllib2.py", line 422, in _open#015
   '_open', req)#015
 File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain#015
   result = func(*args)#015
 File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open#015
   return self.do_open(httplib.HTTPConnection, req)#015
 File "/usr/lib/python2.7/urllib2.py", line 1187, in do_open#015
   r = h.getresponse(buffering=True)#015
 File "/usr/lib/python2.7/dist-packages/raven/breadcrumbs.py", line 328, in getresponse#015
   rv = real_getresponse(self, *args, **kwargs)#015
 File "/usr/lib/python2.7/httplib.py", line 1089, in getresponse#015
   response.begin()#015
 File "/usr/lib/python2.7/httplib.py", line 444, in begin#015
   version, status, reason = self._read_status()#015
 File "/usr/lib/python2.7/httplib.py", line 400, in _read_status#015
   line = self.fp.readline(_MAXLINE + 1)#015
 File "/usr/lib/python2.7/socket.py", line 476, in readline#015
   data = self._sock.recv(self._rbufsize)#015
 File "/usr/lib/python2.7/dist-packages/gevent/socket.py", line 392, in recv#015
   self._wait(self._read_event)#015
 File "/usr/lib/python2.7/dist-packages/gevent/socket.py", line 298, in _wait#015
   self.hub.wait(watcher)#015
 File "/usr/lib/python2.7/dist-packages/gevent/hub.py", line 341, in wait#015
   result = waiter.get()#015
 File "/usr/lib/python2.7/dist-packages/gevent/hub.py", line 568, in get#015
   return self.hub.switch()#015
 File "/usr/lib/python2.7/dist-packages/gevent/hub.py", line 331, in switch#015
   return greenlet.switch(self)#015
timeout: timed out#015```

Thank you,
N