The Lower Depths
04/24/2023, 10:51 AMh11._util.LocalProtocolError: Can't send data when our state is ERROR
It seems that the root cause for it is inheritance from Starlette's BaseHTTPMiddleware
https://github.com/encode/uvicorn/issues/111
https://github.com/encode/starlette/issues/1678
Can you help me in rewriting your middleware so it doesn’t use BaseHTTPMiddleware?
Specifically, I have no idea what to do with
python
if result is None:
response = await call_next(request)
rp_st
04/24/2023, 12:13 PMrp_st
04/24/2023, 12:13 PMThe Lower Depths
04/24/2023, 12:21 PMrp_st
04/24/2023, 12:29 PMrp_st
04/24/2023, 12:30 PMnpx create-supertokens-app@latest
with FastAPI works. Have you tried that?The Lower Depths
04/24/2023, 12:33 PMrp_st
04/24/2023, 12:33 PMThe Lower Depths
04/24/2023, 12:33 PMrp_st
04/24/2023, 12:33 PMThe Lower Depths
04/24/2023, 12:34 PMThe Lower Depths
04/24/2023, 12:34 PMrp_st
04/24/2023, 12:34 PMrp_st
04/24/2023, 12:36 PMThe Lower Depths
04/24/2023, 12:37 PMrp_st
04/24/2023, 12:38 PMThe Lower Depths
04/24/2023, 12:41 PMThe Lower Depths
04/24/2023, 12:42 PMrp_st
04/24/2023, 12:43 PM