Inconsistent server connection

Project Id:095f7523-d6bd-4e86-9175-7a57ea54035f
I built a weather app it work very well on my local machine i can connet to my server countless number of times so i decided to host my server just to test it considering i have'nt hosted any backend app before
I haven implement solution for preflight so i guess its definitely not preflight related
When you load the frontend it automatically connect to the server and fetches the weather data for london but on subsequent request it doesnt go through
And i dont know why
I wasnt even done with the project but ever since i face this issue i just abandon the project
I only came back to it because i have another bigger project i want to host on railway and i dont want to have same issues again

5 Replies

maddsua
HOBBY

a year ago

hey, what do you exactly mean by "doesn't go through"?
does it fail with a http error code or does it fail to connect to the server completely?


a year ago

logs and screenshots would be helpful!


I nitially i thought it my frontend doesnt connect to the sever but after several hours of debgugging i got to know the json.load i use to deserialize the request body actually recieve an empty body so it doesnt pass that stage hence why my front end keep waiting for a response

But why it happens like that i really dont know
Its as if the body get stripped from from the http request on getting to the server or something

I've been on this for hours my head is about to kaboom 💥💥💥💣💣

1353526090806595600
1353526091054186500



This plainbody==> is suppose to print "plainbody ==>{body object} but since the body is empty that why it just print plainbody==>


Loading...