fermyon / feedback

Centralized repository for Fermyon Cloud feedback and bug reports
3 stars 1 forks source link

Variables in Spin Cloud 2.0.0 #41

Closed StuartHarris closed 10 months ago

StuartHarris commented 10 months ago

Hi there. I'm not sure how to run a Spin 2 app that uses variables in Fermyon Cloud. The new API spin_sdk::variables::get("var_name")? results in 500 error, with no logs. And the old API (spin_sdk::config::get()) is no longer available.

The new API works locally with Spin 2.0.0, but not in Fermyon Cloud, and it took a while to track it down, because it seems logs are no longer written when the workload panics.

Thanks for any help (totally get it's bleeding edge :-) )!

lann commented 10 months ago

Hello, thanks for the report. I see a bug in the cloud implementation that would impact the 2.0 variables interface. Should be fixed in a couple of hours.

lann commented 10 months ago

I believe this is fixed now. Please reopen if you continue seeing problems.