Open lost22git opened 1 month ago
We should really provide a nicer error report when the call to roc crashes... because this is cryptic.
I've only spent a couple of minutes looking at this over a coffee break, but it looks like the Http.send
which calls http_client::send_req
in the host is returning a status code of 0
which is strange.
The status comes from let status = response.status().as_u16();
which is a hyper response... so there must be something strange going on from this point back into roc. Maybe alignment or FFI something isn't right -- I don't think we've tested the http client that much in web server, maybe worth comparing if the implementation has changed from basic-cli much or a copy-paste error. Some dbg!
's should help get to the bottom of this pretty quickly.
I should be able look into this more tomorrow.
code
http test report
server error report