Skip to content

Docs: could improve the error message when newer exports do not match spin supported #3000

@squillace

Description

@squillace
  • Spin version (spin --version): spin 3.0.0 (737778e 2024-11-07)
  • Installed plugin versions (spin plugins list --installed):
    squillace@idiopath:~/work/sample-wasi-http-rust$ spin plugins list --installed
    cloud 0.5.1 [installed]
    js2wasm 0.6.1 [installed]
    k8s 0.1.0 [installed]
    kube 0.3.1 [installed]
    otel 0.1.2 [installed]
    py2wasm 0.3.2 [installed]

When I build and run https://github.com/yoshuawuyts/sample-wasi-http-rust it runs fine with wasmtime 29.0.1, but the command spin up -f <path to same component/> results in the following error:

spin up -f target/wasm32-wasip1/debug/rust_wasi_hello.wasm

While this is literally true -- the newer module from cargo component build is based on exporting inbound-httpv0.2.3 which is not in the supported list in that build of Spin -- it's a tad technical. I'm thinking we might want to have an additional suggestion, something like: This often happens when the version of exports the module offers is newer than those supported in your version of Spin. Upgrading Spin might solve the problem.

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