Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Error running http_client example in Kubernetes #7

@tpmccallum

Description

@tpmccallum

Just putting this error message in here for preserving (whilst I figure out why the error is being thrown)
Pretty sure it is because I need to ensure that the server and client examples are able to communicate inside Kubernetes

The origin of the error is from running this command which is in the documentation here

sudo ./kubernetes/cluster/kubectl.sh run -it --rm --restart=Never client-demo --image=tpmccallum/http_client:latest /http_client.wasm
sudo ./kubernetes/cluster/kubectl.sh run -it --rm --restart=Never client-demo --image=tpmccallum/http_client:latest /http_client.wasm hello
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: IO(Error { kind: WriteZero, message: "failed to write whole buffer" })', src/main.rs:5:70
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2021-11-09 05:51:22.057] [error] execution failed: unreachable, Code: 0x89
[2021-11-09 05:51:22.057] [error]     In instruction: unreachable (0x00) , Bytecode offset: 0x00018404
/usr/bin/crun: could not set krun executable
pod "client-demo" deleted
pod default/client-demo terminated (Error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions