-
Notifications
You must be signed in to change notification settings - Fork 97
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
[Bug] Wasm plugin crashed when calling get_http_request_headers() #217
Comments
The issue is that this SDK originally defined You should be using |
Thanks for your response. This makes a lot sense! I will use We also are using these APIs:
I assume we should be using the "byte" version of them as well? |
建议使用 match 返回 result来替代.unwrap();可以有效防止崩溃 |
you can use https://github.com/pi-pi-miao/proxy-wasm-rust-sdk solve the problem |
We use proxy-wasm-rust-sdk for our stats plugin. Recently we received a bug report from our customer. By looking into the backtrace, we found that the crash happened within the hostcalls.rs in the SDK.
Error log:
This easily reproducible if I ran following code, see the playground:
Looks like the byte is not following UTF-8 encoding rules, are there any breaking change introduced from Envoy side that would make the bytes invalid UTF-8 encoding?
Would need some help troubleshooting this thanks!
The text was updated successfully, but these errors were encountered: