Upload files doesn't work when deployed on AWS EC2 #13994
Replies: 4 comments 1 reply
-
Also file upload not working with below angular code.
}
} |
Beta Was this translation helpful? Give feedback.
-
I think it might be not enough info to help you. Could you please answer the following questions:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@YuriiMotov below is curl is working fine inside ec2 terminal but when i am using this curl from local machine it is not working, although all other api endpoints are working fine. curl -v \ |
Beta Was this translation helpful? Give feedback.
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
when running fastAPI application using localhost I am able to upload pdf file successfully using swagger, but when i deployed to server as service then i am unable to upload files using swagger, In network tab i see request is pending.
here is my deployment script:
Also I made port 8000 open. Also I have directly accessing this service, No Ngnix or apache2 setup/proxy.
All request are working fine except file upload API
can someone tell how to debug this i spent more than 2 days, but unable to figure it out.
Operating System
Linux
Operating System Details
No response
FastAPI Version
fastapi==0.104.1
Pydantic Version
pydantic==2.5.0
Python Version
3.10
Additional Context
Dependencies in the details:
alembic==1.12.1
amqp==5.3.1
annotated-types==0.7.0
anyio==3.7.1
APScheduler==3.10.4
attrs==25.3.0
bcrypt==3.2.0
beautifulsoup4==4.12.2
billiard==4.2.1
cachetools==5.5.2
celery==5.3.4
certifi==2025.7.14
cffi==1.17.1
charset-normalizer==3.4.2
click==8.2.1
click-didyoumean==0.3.1
click-plugins==1.1.1.2
click-repl==0.3.0
cryptography==45.0.5
dnspython==2.7.0
ecdsa==0.19.1
email_validator==2.2.0
fastapi==0.104.1
filelock==3.18.0
fsspec==2025.7.0
google-ai-generativelanguage==0.4.0
google-api-core==2.25.1
google-auth==2.23.3
google-auth-httplib2==0.1.1
google-auth-oauthlib==1.1.0
google-generativeai==0.3.2
googleapis-common-protos==1.70.0
greenlet==3.2.3
grpcio==1.74.0
grpcio-status==1.62.3
h11==0.16.0
hf-xet==1.1.5
httpcore==1.0.9
httplib2==0.22.0
httpx==0.25.2
huggingface-hub==0.14.1
idna==3.10
Jinja2==3.1.6
joblib==1.5.1
kombu==5.5.4
linkedin_api==2.2.0
lxml==6.0.0
Mako==1.3.10
markdownify==0.13.1
MarkupSafe==3.0.2
mpmath==1.3.0
networkx==3.5
nltk==3.9.1
numpy==1.26.3
nvidia-cublas-cu12==12.6.4.1
nvidia-cuda-cupti-cu12==12.6.80
nvidia-cuda-nvrtc-cu12==12.6.77
nvidia-cuda-runtime-cu12==12.6.77
nvidia-cudnn-cu12==9.5.1.17
nvidia-cufft-cu12==11.3.0.4
nvidia-cufile-cu12==1.11.1.6
nvidia-curand-cu12==10.3.7.77
nvidia-cusolver-cu12==11.7.1.2
nvidia-cusparse-cu12==12.5.4.2
nvidia-cusparselt-cu12==0.6.3
nvidia-nccl-cu12==2.26.2
nvidia-nvjitlink-cu12==12.6.85
nvidia-nvtx-cu12==12.6.77
oauthlib==3.3.1
outcome==1.3.0.post0
packaging==25.0
pandas==2.1.3
passlib==1.7.4
pillow==11.3.0
prompt_toolkit==3.0.51
proto-plus==1.26.1
protobuf==4.25.8
psycopg2-binary==2.9.9
pyasn1==0.6.1
pyasn1_modules==0.4.2
pycparser==2.22
pydantic==2.5.0
pydantic-settings==2.1.0
pydantic_core==2.14.1
pyparsing==3.2.3
PyPDF2==3.0.1
PySocks==1.7.1
python-dateutil==2.9.0.post0
python-docx==1.1.0
python-dotenv==1.0.0
python-jobspy==1.1.79
python-jose==3.3.0
python-multipart==0.0.6
pytz==2025.2
PyYAML==6.0.2
redis==5.0.1
regex==2024.11.6
requests==2.32.4
requests-oauthlib==2.0.0
rsa==4.9.1
safetensors==0.5.3
scikit-learn==1.3.2
scipy==1.15.3
selenium==4.15.2
sentence-transformers==2.2.2
sentencepiece==0.2.0
six==1.17.0
sniffio==1.3.1
sortedcontainers==2.4.0
soupsieve==2.7
SQLAlchemy==2.0.23
starlette==0.27.0
sympy==1.14.0
threadpoolctl==3.6.0
tls-client==1.0.1
tokenizers==0.13.3
torch==2.7.1
torchvision==0.22.1
tqdm==4.67.1
transformers==4.30.2
trio==0.30.0
trio-websocket==0.12.2
triton==3.3.1
typing-inspection==0.4.1
typing_extensions==4.14.1
tzdata==2025.2
tzlocal==5.3.1
urllib3==2.5.0
uvicorn==0.24.0
vine==5.1.0
wcwidth==0.2.13
webdriver-manager==4.0.1
wsproto==1.2.0
Beta Was this translation helpful? Give feedback.
All reactions