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
Describe the bug
Got Response as follows when I did performance test for broker with pubsub channel: 400 Bad Request 400 HTTP/1.1 1 1 map[Content-Length:[197] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 04 Oct 2019 03:01:38 GMT]] 0xc000371400 197 [] false false map[] 0xc0004a1600 <nil>}
Currently cloudevents sdk-go only supports type as follows: "application/json" and "text/json" and "application/xml" and "text/xml"
It doesn't support "text/plain". I've created cloudevents/sdk-go#232 to fix this issue. Before cloudevents/sdk-go#232 gets solved, need to change Content-Type to those Content-Type that cloud sdk-go supports to unblock the performance tests.
In addition, when I did the performance tests, I noticed two weird things:
The same perf test code for broker with inmemory channel works even though the content-type is still text-plain.
After I change Content-Type to application/json, the performance test for broker with pubsub channel works. But when I change it to Content-Type to text/json, it doesn't work. Both application/json and text/json are supported by cloudevents sdk-go
Expected behavior
Change Content-Type to application/json.
Performance tests for broker with either inmemory channel or pubsub channel can run successfully. To Reproduce
Steps to reproduce the behavior.
Run performance tests for broker with pubsub channel. The perf tests are written in knative-gcp. Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered:
Describe the bug
Got Response as follows when I did performance test for broker with pubsub channel:
400 Bad Request 400 HTTP/1.1 1 1 map[Content-Length:[197] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 04 Oct 2019 03:01:38 GMT]] 0xc000371400 197 [] false false map[] 0xc0004a1600 <nil>}
Currently cloudevents sdk-go only supports type as follows:
"application/json" and "text/json" and "application/xml" and "text/xml"
It doesn't support "text/plain". I've created cloudevents/sdk-go#232 to fix this issue. Before cloudevents/sdk-go#232 gets solved, need to change Content-Type to those Content-Type that cloud sdk-go supports to unblock the performance tests.
In addition, when I did the performance tests, I noticed two weird things:
Expected behavior
Change Content-Type to application/json.
Performance tests for broker with either inmemory channel or pubsub channel can run successfully.
To Reproduce
Steps to reproduce the behavior.
Run performance tests for broker with pubsub channel. The perf tests are written in knative-gcp.
Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: