Aimeedeer / realtps

https://realtps.net
MIT License
93 stars 25 forks source link

Check status of `reqwest` responses #72

Open brson opened 1 year ago

brson commented 1 year ago

It looks to me like we assume all reqwest responses are successful, though I haven't looked closely at the API to see how unsuccessdul requests are supposed to be handled.

Figure out the right way to deal with unsuccessful requests and change all the calls to return a proper error instead of blindly parsing the response as if it were a success.