second-state / WasmEdge-go

The GO language SDK and API for WasmEdge
https://www.secondstate.io/articles/extend-golang-app-with-webassembly-rust/
Apache License 2.0
107 stars 16 forks source link

issues to call function with context #29

Closed chenyukang closed 2 years ago

chenyukang commented 2 years ago

I'm trying to do a wasmedge wrapper for DAPR to provide api for wasm.

There is a issue we panic at this line of code:

https://github.com/chenyukang/wasmedge-dapr-sdk/blob/add-string/dapr-sdk/hostfunc.go#L30

f3d41dd3ad37b7b9b34a4b2d0bd43af

I think this is not related to WasmEdge-go, but it's great if you can give me some help.

hydai commented 2 years ago

Looks like the dapr cannot create the client. This is not related to any WasmEdge part. Maybe you need to check the dapr sdk troubleshooting?

q82419 commented 2 years ago

I think there may be issue here? https://github.com/chenyukang/wasmedge-dapr-sdk/blob/3c31b9ecc397cf26ee15715c195e93be6c1597b9/client/client.go#L139

chenyukang commented 2 years ago

I think there may be issue here? https://github.com/chenyukang/wasmedge-dapr-sdk/blob/3c31b9ecc397cf26ee15715c195e93be6c1597b9/client/client.go#L139

The code flow won't call here. This is not related to WasmEdge-go, I will close it now.