You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The frontend app is hosted in the AWS S3 bucket. FastAPI backend is running on AWS App Runner service, which runs containerized apps.
The setup works immediately and keeps on working for a while (not absolutely sure for how long). Then stops working the next day with the same setup. After redeploying, it starts working immediately. And stops after a while.
Started using starlette.middleware.cors instead of fastapi.middleware.cors, the issue persists.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
The frontend app is hosted in the AWS S3 bucket. FastAPI backend is running on AWS App Runner service, which runs containerized apps.
The setup works immediately and keeps on working for a while (not absolutely sure for how long). Then stops working the next day with the same setup. After redeploying, it starts working immediately. And stops after a while.
Started using
starlette.middleware.corsinstead offastapi.middleware.cors, the issue persists.Operating System
Linux, Other
Operating System Details
AWS App Runner
FastAPI Version
0.95.1
Pydantic Version
1.10.4
Python Version
3.11.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions