You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so when I try post request and the plugin run, it give these error
50#50: *6596 panicked at 'unexpected status: 12', /Users/xanonx/.cargo/registry/src/github.com-1ecc6299db9ec823/proxy-wasm-0.2.0/src/hostcalls.rs:135:23, client: 127.0.0.1, server: _, request: "POST /anything HTTP/1.1", host: "weby.local"50#50: failed to call function: wasm trap: wasm `unreachable` instruction executed50#50: *6596 [lua] wasm.lua:95: phase_func(): my-custom-plugin: failed to run wasm plugin: failed to run proxy_on_http_request_body, client: 127.0.0.1, server: _, request: "POST /anything HTTP/1.1", host: "weby.local"50#50: *6596 [lua] plugin.lua:901: run_plugin(): my-custom-plugin exits with http status code 503, client: 127.0.0.1, server: _, request: "POST /anything HTTP/1.1", host: "weby.local"50#50: *6596 panicked at 'already borrowed: BorrowMutError', /Users/xanonx/.cargo/registry/src/github.com-1ecc6299db9ec823/proxy-wasm-0.2.0/src/dispatcher.rs:370:54, client: 127.0.0.1, server: _, request: "POST /anything HTTP/1.1", host: "weby.local"thread panicked while panicking. aborting.50#50: failed to call function: wasm trap: wasm `unreachable` instruction executed50#50: *6596 [lua] wasm.lua:112: phase_func(): my-custom-plugin: failed to run wasm plugin: failed to run proxy_on_http_response_headers, client: 127.0.0.1, server: _, request: "POST /anything HTTP/1.1", host: "weby.local"thread panicked while processing panic. aborting.50#50: failed to call function: wasm trap: wasm `unreachable` instruction executed50#50: failed to mark context 2 as done, rc: -1thread panicked while processing panic. aborting.50#50: failed to call function: wasm trap: wasm `unreachable` instruction executed50#50: failed to delete context 2, rc: -1
the error show that it is panicking from already borrowed: BorrowMutError error from proxy-wasm-0.2.0/src/dispatcher.rs:370:54. Does my set new request body code wasnt supposed to use set_http_request_body method or something is wrong with my code?
The text was updated successfully, but these errors were encountered:
hello, I am using rust proxy wasm with apisix wasm plugin, below is the sample code to get, modify and set http request body
so when I try post request and the plugin run, it give these error
the error show that it is panicking from
already borrowed: BorrowMutError
error fromproxy-wasm-0.2.0/src/dispatcher.rs:370:54
. Does my set new request body code wasnt supposed to useset_http_request_body
method or something is wrong with my code?The text was updated successfully, but these errors were encountered: