strawberry-graphql/strawberry

Upgrade causes "no current event loop in thread" exception

paltman opened this issue · 1 comments

Moving from 0.225.1 to 0.227.2, I get event loop exceptions like:

https://wedgworths-inc.sentry.io/share/issue/1ea8832512944d21b11adc8dedcacef7/

I don't use async so I'm confused why exception is in that area of the code.

I wonder if it has something to do with 63dfc89

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

False alarm.

Real culprit is Sentry's new auto-inclusion of extensions:
https://docs.sentry.io/platforms/python/integrations/strawberry/

When I explicitly set async to False it works. It was auto-including the async extension for some reason.