Skip to content

sample-apiserver returns 200 with error marshalling protobuf response #50342

Closed
@cheftako

Description

@cheftako

/kind bug

What happened:
Sent a request for an aggregated resource (sample-api wardle/flunders). Response was a 200 status code and an error message saying the response could not be given.

What you expected to happen:
We should have an error status code.

How to reproduce it (as minimally and precisely as possible):

  1. Set up sample-apiserver.
  2. curl -k -v -XGET -H "User-Agent: kubectl/v1.8.0 (linux/amd64) kubernetes/49ae996" -H "Accept: application/vnd.kubernetes.protobuf" -H "Authorization: Bearer " https:///apis/wardle.k8s.io/v1alpha1/namespaces/default/flunders
  3. Response
    < HTTP/1.1 200 OK
    < Content-Length: 173
    < Content-Type: application/vnd.kubernetes.protobuf
    < Date: Tue, 08 Aug 2017 22:57:37 GMT
    <
    k8s
    �v1��Status���
  • Connection #0 to host 35.193.112.40 left intact
    ��Failure�~object *v1alpha1.FlunderList does not implement the protobuf marshalling interface and cannot be encoded to a protobuf message"0���"

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): 1.8
  • Cloud provider or hardware configuration**: GCE
  • OS (e.g. from /etc/os-release): Debian GNU/Linux 7 (wheezy)
  • Kernel (e.g. uname -a): 3.16.0-4-amd64
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions