Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Server return error #79

Open
Patrick0308 opened this issue Feb 1, 2023 · 1 comment
Open

HTTP Server return error #79

Patrick0308 opened this issue Feb 1, 2023 · 1 comment

Comments

@Patrick0308
Copy link

I test http server with knative.

ubuntu@ubuntu:~$ time curl -H "Host: http-wasm.default.127.0.0.1.nip.io" -d "name=HelloWorld" http://localhost:32234
Error(TrackableError { kind: UnexpectedEos, cause: Some(Cause("assertion failed: `remaining >= required`; remaining=0, required=15")), history: History([Location { module_path: "bytecodec::combinator", file: "/home/hydai/.cargo/registry/src/github.com-1ecc6299db9ec823/bytecodec-0.4.15/src/combinator.rs", line: 729, message: "" }, Location { module_path: "httpcodec::body", file: "/home/hydai/.cargo/registry/src/github.com-1ecc6299db9ec823/httpcodec-0.2.3/src/body.rs", line: 237, message: "" }, Location { module_path: "httpcodec::message", file: "/home/hydai/.cargo/registry/src/github.com-1ecc6299db9ec823/httpcodec-0.2.3/src/message.rs", line: 67, message: "" }, Location { module_path: "httpcodec::request", file: "/home/hydai/.cargo/registry/src/github.com-1ecc6299db9ec823/httpcodec-0.2.3/src/request.rs", line: 153, message: "" }, Location { module_path: "bytecodec::decode", file: "/home/hydai/.cargo/registry/src/github.com-1ecc6299db9ec823/bytecodec-0.4.15/src/decode.rs", line: 448, message: "" }]) })
real	0m0.024s
user	0m0.008s
sys	0m0.004s

Image id is docker.io/wasmedge/example-wasi-http@sha256:14e3454b240ff1104222f349eaddab26b07f2ae086d80bb0f84e5b0d03dc8242

@juntao
Copy link
Member

juntao commented Feb 1, 2023

Hi,

Have you tried the wasmedge CLI? Or is it only failing at knative?

In the knative environment, how do you run the Wasm file? In a Linux container? In crun-wasm? In containerd? Thanks!

Also, I think perhaps a better HTTP server example to try is this one:

https://github.com/WasmEdge/wasmedge_hyper_demo/tree/main/server

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants