proxy-wasm-go-host icon indicating copy to clipboard operation
proxy-wasm-go-host copied to clipboard

err: "proxy_set_buffer_bytes" is not exported in module "env"

Open springrain opened this issue 2 years ago • 0 comments

When wasm implements the ResponseBody function and is called using v2, an error will be reported

func (ctx *httpContext) OnHttpResponseBody(numHeaders int, endOfStream bool) types.Action {
	proxywasm.ReplaceHttpResponseBody([]byte("proxywasm.ReplaceHttpResponseBody"))
	return types.ActionContinue
}

[wazero][instance] Start failed to instantiate module, err: "proxy_set_buffer_bytes" is not exported in module "env"

springrain avatar Jun 09 '23 01:06 springrain