Hi, I am implementing supertokens in python fastapi. Now I am at the point where I am trying to depl...
c
Hi, I am implementing supertokens in python fastapi. Now I am at the point where I am trying to deploy it to AWS lambda by wrapping my app around Mangum. However, I keep getting this error "RuntimeError: There is no current event loop in thread 'MainThread'". My app works fine locally, and I have dockerized it. I see that there is a section for AWS lambda in the docs but it is only for node. I also noticed that there is a framework called "awsLambda" in that example. But there isn't an option for the supertokens_python library. Is this not supported?
@rp_st
r
Hey! This is something we are figuring out. Have a look at this thread https://discord.com/channels/603466164219281420/644849840475602944/1021833982192656414
c
Thank you. I did take a look at that but couldnt figure out how adyus worked around that issue with nest_asyncio.
r
Hmmm. We can update the docs to have python setup as well for aws lambda. This will be fine sometime next week. Stay tuned
c
Questions for the supertoken team: 1. Roughly how long will this issue be resolved? My services are hosted on lambda and have my code ready to use supertoken (great library by the way!) but right now I can't deploy them 😦 2. Any work arounds?
r
1. One week until we update the docs
2. You can deploy without aws lambda for now and it should work. After we have a guide, use aws lambda
c
Ok thank you I look forward to the update!
3 Views