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

OnVMStart invokes the proxywasm.DispatchHttpCall error

Open pjjwpc opened this issue 3 years ago • 0 comments

Describe the bug / error

OnVMStart method invokes the proxywasm. DispatchHttpCall method error

proxy_on_vm_start failed: Uncaught RuntimeError: unreachable
Proxy-Wasm plugin in-VM backtrace:
  0:  0x7ca4 - runtime.runtimePanic
  1:  0x1fca - runtime.nilPanic
  2:  0x1c873 - github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm.DispatchHttpCall
  3:  0x1a1b7 - proxy_on_vm_start

What is your Envoy/Istio version?

envoy 1.20.1

What is the SDK version?

0.16

What is your TinyGo version?

0.22

URL or snippet of your code including Envoy configuration

- name: envoy.filters.http.wasm
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
              config:
                name: "test"
                root_id: "test"
                configuration:
                  '@type': type.googleapis.com/google.protobuf.StringValue
                  value: |
                    {
                      "name": "test",
                      "age": 123
                    }
                vm_config:
                  runtime: "envoy.wasm.runtime.v8"
                  configuration:
                    '@type': type.googleapis.com/google.protobuf.StringValue
                    value: |
                      {
                          "grantType":"abc",
                          "clientId":"bcd",
                          "clientSecret":"cde",
                          "scope":"adsfdfad asdfadsf"
                      }
                  code:
                    local:
                      filename: './jwt.wasm'

Additional context (Optional)

pjjwpc avatar Feb 23 '22 05:02 pjjwpc