aiohttp complaining about BadStatusLine in private network
have an aiohttp server running on host
::0.0.0.0
and port 8080
.
sending a post to the server on the link https://discorsa-bot.railway.internal:8080/lap
but i get this on the server:
ive tried running this server on my local machine using host 0.0.0.0
and port 8080
and it works fine so that leads me to believe it definitely has something to do with private networking
if i dont add the port in the link i noticed the port it sends to is different from the port that server gets from env variables so i just defined it as 8080 and added that to the link as well
pls help?
project ID:
45ce4783-9560-4cd6-9fe7-8982bd5ab434Solution:Jump to solution
this is an internal network, and internally your apps are running on http, thus your internal requests have to be done with http too
6 Replies
Project ID:
45ce4783-9560-4cd6-9fe7-8982bd5ab434
Solution
this is an internal network, and internally your apps are running on http, thus your internal requests have to be done with http too
I did do that in the start
Wasnt working but i dont remember all the changes i made in trying to figure out what the problem is. Ill try using http again
let me know how that goes, because either way you need to be using http for internal requests
oh it did work
well dam
ill keep this open till im 100% sure its solved ig
ty tho
haha no problem