Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
springrain opened this issue Jun 9, 2023 · 0 comments
Open

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

springrain opened this issue Jun 9, 2023 · 0 comments

Comments

@springrain
Copy link

springrain commented Jun 9, 2023

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant