Skip to content

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

Open
@springrain

Description

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"

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions