Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

OnVMStart invokes the proxywasm.DispatchHttpCall error #255

@pjjwpc

Description

@pjjwpc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions