preetjdp / YouOweMe

Making it simpler to track those chillars
9 stars 6 forks source link

[BUG] Better way to check if Local Server is Live. #36

Open preetjdp opened 4 years ago

preetjdp commented 4 years ago

Describe the bug The bug is on mobile where I use a Http.get query to check weather the server is alive. The problem is that because Seva only accepts Gql requests, it sends a 400 response which is a error.

On Seva Level it just pings the local Firebase Server with returns a 200, so there is no problem there.

Expected behavior Just to check if the server is alive

Additional context https://github.com/preetjdp/YouOweMe/blob/6ef645b62e87c579abb4cde23aeb03dbf645e108/mobileApp/lib/resources/helpers.dart#L39-L49