WasmEdge / wasmedge_hyper_demo

Lightweight HTTP servers based on hyper / warp frameworks in the WasmEdge Runtime.
81 stars 15 forks source link

instantiation failed: unknown import when linking module: "rustls_client" , function name: "new_codec" #18

Open holmes89 opened 1 year ago

holmes89 commented 1 year ago

I was trying to follow this demo for a personal usecase and was running into an error. I then copied the HTTPs example line for line and I'm getting the following stack when running the WASM file:

[2023-09-06 15:23:47.397] [error] instantiation failed: unknown import, Code: 0x62
[2023-09-06 15:23:47.397] [error]     When linking module: "rustls_client" , function name: "new_codec"
[2023-09-06 15:23:47.397] [error]     At AST node: import description
[2023-09-06 15:23:47.397] [error]     At AST node: import section
[2023-09-06 15:23:47.397] [error]     At AST node: module

Not sure what the issue is here. I'm running this on a Github Codespace with the following system information:

uname -a
Linux codespaces-61c5b6 5.15.0-1041-azure #48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
apepkuss commented 1 year ago

I ran into the same issue. You can follow the instructions in the TLS plugin section to deploy the TLS plugin. After that, the issue should be solved.