fermyon/cloud-plugin

Spin app cannot find deleted and reset variable

kate-goldenring opened this issue · 1 comments

Take an app named var with a host variable that simply prints the host value:

...
[variables]
host = {required = true}

[[component]]
id = "hello"
source = "target/wasm32-wasi/release/http_rust.wasm"
description = "A simple component that returns hello."
[component.trigger]
route = "/hello"
[component.config]
host = "{{ host }}"

If you delete the variable with spin cloud variables delete host --app var, you should no longer see it in spin cloud variables list --app var and the app will throw a Not Found error as expected. However, when you reset the variable (spin cloud variables set host=again --app var, while the variable can be listed via the CLI, the app continues to throw a Not Found error.

Note: this is using this version of the plugin #16

Big oops and realized the Not Found was due to me not hitting the correct endpoint of the app. This bug never existed