second-state / wasmedge_wasi_socket

A Rust lib for socket on WasmEdge.
https://second-state.github.io/wasmedge_wasi_socket/
Apache License 2.0
70 stars 28 forks source link

Error: Os code: 52 #68

Open vishalchandra opened 1 year ago

vishalchandra commented 1 year ago

The http server example is giving an error on doing the following:

wasm~ curl -X POST http://127.0.0.1:1234 -d "name=WasmEdge"
curl: (52) Empty reply from server

Output on terminal from which I ran the http server example using wasmedge

wasm~ wasmedge examples/wasmedge_wasi_socket/examples/http_server/target/wasm32-wasi/release/http_server.wasm 
new connection at 1234
Error: Os { code: 52, kind: Unsupported, message: "Function not implemented" }
wasm~ uname -sr
Darwin 21.6.0
wasm~ uname -a
Darwin GLUE.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64
wasm~ wasmedge --version
wasmedge version 0.11.1
wasm~ cargo --version
cargo 1.64.0 (387270bc7 2022-09-16)

Thanks for your help.

bernii commented 1 year ago

same error ^ (osx 12.6 m1 mac) - probably the cause of https://github.com/WasmEdge/wasmedge_hyper_demo/issues/8

MediosZ commented 1 year ago

Yes, that's caused by some missing implementations on macOS.

MediosZ commented 1 year ago

This should be fixed by this pr.

BlueFrog130 commented 1 year ago

Getting this issue on Windows 10 as well

hydai commented 1 year ago

Getting this issue on Windows 10 as well

Windows platform has not yet fully supported this feature. Even the WASI component is also partially supported. You can find these related issues on WasmEdge: https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aopen+is%3Aissue+label%3Aplatform%3Awindows