austinm
austinm
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
got it working. Changed the endpoint from /upload_file to /upload_file/. Really don't know how I would've figured that out besides dumb luck. Thanks for your help and patience
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
haha my bad. I thought I needed that. I didn't have any middleware setup previously. Can you tell me if my undertsanding is correct: When the app gets a request to the upload endpoint, it is being redirected via http which is insecure. So I need to make sure it is not redirecting to http??
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
'This page isn’t workingfastapi-production-23e9.up.railway.app is currently unable to handle this request.'
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
I added this to the fastapi backend: app.add_middleware(TrustedHostMiddleware, allowed_hosts=["*"], allow_any=True) app.add_middleware(HTTPSRedirectMiddleware) Not sure if this is the correct approach but the app is just not working at all now haha
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
ok thanks. Let me check the middleware. Sorry if I have stupid questions, kinda new to this
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
But still get the redirect to http
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
yeah, I tried fixing that by explicitly stating https in the form submit: <form action="https://fastapi-production-23e9.up.railway.app/uploadfile" method="post" enctype="multipart/form-data" id="uploadForm">
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
22 replies
RRailway
Created by austinm on 9/1/2023 in #✋|help
'The information you’re about to submit is not secure'
76839ba3-823f-432f-8aa5-804dc9bf80d7
22 replies
RRailway
Created by austinm on 7/20/2023 in #✋|help
Trouble using websockets with Flask
71e8978a-1a33-420b-bd0e-0e1c6c74247e
6 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
alright i will. thanks for the help and quick responses
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
I just used the railways fastapi template which has that in the railway.json
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
uvicorn main:app --host 0.0.0.0 --port $PORT
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
uvicorn main:app --reload
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
i did use uvicron locally
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
also, it works when hosted locally, not sure why a package would change behavior when hosted remotely?
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
interesting. I cut down requirements as much as possible. Do you have reference to the past issue?
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
haha yes 95% sure. Do you think streaming issue is connected to this?
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
yeah
28 replies
RRailway
Created by austinm on 6/9/2023 in #✋|help
Streaming response to client
yup
28 replies