Open jaykam opened 5 years ago
Hi, please use the synchronous transport from here: https://docs.sentry.io/clients/python/transports/#sync
AWS Lambda will suspend your entire machine after a request/function call has returned which leads to weird network errors (or just missing events)
Hey @untitaker
Thanks for your quick reply
But I'm also using this synchronous transport As you can see below
from raven import Client
from raven.transport.http import HTTPTransport
class sentryClient:
class __sentryClient:
def __init__(self):
self.client = Client(sentry_dsn, extra=None,
enable_breadcrumbs=False,
transport=HTTPTransport)
So here I've initialized the sentry Client and passing the sync transport.
I'm getting that error 3-4 times out of 10. According to me, this is something related to raven!
I am not sure what's going on in your code but I am pretty sure you are not using the synchronous transport, as the first line of your stacktrace is from code that belongs to the threaded one.
My best guess is that you have two clients instantiated where one of them is broken.
@untitaker
from raven import Client
Here I'm defining the Client and I guess this is the same for all type of transport If I follow this doc https://docs.sentry.io/clients/python/transports/#sync
Can you point me out where you're saying that I've defined the two Clients
Hello @dcramer @sabricot,
I'm facing this issue randomly, Sometimes it breaks and sometimes works
I'm running it on Lambda with python 2.7 and raven 6.3.0 and certifi 2016.2.28