Open mikkelhegn opened 1 year ago
It loads okay for me. Which version of Spin are you using @sohanmaheshwar?
Answering my own question: @sohanmaheshwar is on v1.3 or earlier. If I run it with Spin 1.3 I see the exact same error.
This is because @mikkelhegn's app links to SDK 1.4.1. It is expected that 1.4 apps will not run on 1.3, but obviously it would be good to make this error friendlier! I don't know if it's worth backporting that to 1.3 though.
@dicej I thought we added well-known exports or something to enable us to give friendlier messages on SDK/Spin compatibility mismatches - is this failing before we can get to even checking those?
@dicej I thought we added well-known exports or something to enable us to give friendlier messages on SDK/Spin compatibility mismatches - is this failing before we can get to even checking those?
The exports are there (assuming you've used a somewhat recent version of the Rust, Go, JS, or Python SDK), but I don't believe anyone's added code to check them and include them in error messages yet.
This error is at a different layer - we're trying to read the component metadata from a custom section and that fails because the metadata is encoded differently. I'll try to see if I can make this error message better.
In reference to trying and
spin up
'ing this app: github.com/mikkelhegn/redirectWhat's causing this error in Spin?
spin build
works fine.When I do
spin up
, I see the following error:Am I missing something in setup? wasn't able to debug
Originally posted by @sohanmaheshwar in https://github.com/fermyon/developer/issues/779#issuecomment-1677608525