spin: Http-go template fails
Creating a new Spin application using the http-go template fails without any modifications to the code:
Serving http://127.0.0.1:3000
Available Routes:
go-temp2: http://127.0.0.1:3000 (wildcard)
2022-10-14T17:31:26.421024Z ERROR spin_http_engine: Error processing request: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:
0: 0x3a8f - <unknown>!runtime.runtimePanic
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31 (15 by maintainers)
This should be addressed in https://github.com/fermyon/spin/pull/1165
That could be a bug in the SDK that managed to stay hidden with earlier tinygo versions. I’m working on updating the Go SDK right now to add key-value support and update outbound-redis. I can take a look at this while I’m at it.
Hurrah!
For anyone wanting this upgrade. Spin v0.8.0 works, but you need to update the Go SDK reference using
go get github.com/fermyon/spin/sdk/go@main
in the folder containing go.mod for your Spin component.I cannot replicate, can you share the code? I was using the
http-go
template. I’m on MacOS.