Skip to content

Lab 6 - gRPC regex endpoint unimplemented #13

@davivcgarcia

Description

@davivcgarcia

One of the gRPCurl commands are not returning the expected output, and looks like there is a misconfiguration in the demo application itself.

$ grpcurl -plaintext -proto grpc.proto -authority bar.com -d '{"name": "grpc-header-a"}' -H 'grpcRegex: grpc-header-a' $NGF_DNS:80 helloworld.Greeter/SayHello
ERROR:
  Code: Unimplemented
  Message: unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "text/html"

The related manifest file is NGINX-Gateway-Fabric-Lab/labs/6.grpc/3.grpcroute-header.yaml, and this route is configured here:

  # Matches "headerRegex: grpc-header-[a-z]{1}"
  - matches:
    - headers:
      - name: headerRegex
        value: "grpc-header-[a-z]{1}"
        type: RegularExpression
    backendRefs:
    - name: grpc-infra-backend-v2
      port: 8080

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions