{"action":"created","issue":{"url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/815","repository_url":"https://api.github.com/repos/ThreeMammals/Ocelot","labels_url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/815/comments","events_url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/815/events","html_url":"https://github.com/ThreeMammals/Ocelot/issues/815","id":420851246,"node_id":"MDU6SXNzdWU0MjA4NTEyNDY=","number":815,"title":"request headers contains chinese characters ","user":{"login":"zpc870921","id":9030696,"node_id":"MDQ6VXNlcjkwMzA2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/9030696?v=4","gravatar_id":"","url":"https://api.github.com/users/zpc870921","html_url":"https://github.com/zpc870921","followers_url":"https://api.github.com/users/zpc870921/followers","following_url":"https://api.github.com/users/zpc870921/following{/other_user}","gists_url":"https://api.github.com/users/zpc870921/gists{/gist_id}","starred_url":"https://api.github.com/users/zpc870921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zpc870921/subscriptions","organizations_url":"https://api.github.com/users/zpc870921/orgs","repos_url":"https://api.github.com/users/zpc870921/repos","events_url":"https://api.github.com/users/zpc870921/events{/privacy}","received_events_url":"https://api.github.com/users/zpc870921/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-03-14T06:27:29Z","updated_at":"2019-03-15T00:52:27Z","closed_at":null,"author_association":"NONE","body":"Expected Behavior\r\nUse of non ASCII characters in the header of a http request, for example ñ.\r\n\r\nActual Behavior\r\nI’m getting these exceptions:\r\n\r\nHttpRequesterMiddleware\r\n\r\n  warn: Ocelot.Requester.Middleware.HttpRequesterMiddleware[0] \r\n\r\n  requestId: 0HLK5V6HTDSH7:00000001, previousRequestId: no previous request id, message: Error making http request, exception: System.Net.Http.HttpRequestException: Request headers must contain only ASCII characters. \r\n\r\n     at System.Net.Http.HttpConnection.WriteStringAsync(String s) \r\n\r\n     at System.Net.Http.HttpConnection.WriteHeadersAsync(HttpHeaders headers, String cookiesFromContainer) \r\n\r\n     at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task'1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) \r\n\r\n     at Ocelot.Requester.HttpClientHttpRequester.GetResponse(DownstreamContext context)` \r\nResponderMiddleware:\r\n\r\n  warn: Ocelot.Responder.Middleware.ResponderMiddleware[0] \r\n\r\n  requestId: 0HLK5V6HTDSH7:00000001, previousRequestId: no previous request id, message: Error Code: UnableToCompleteRequestError Message: Error making http request, exception: System.Net.Http.HttpRequestException: Request headers must contain only ASCII characters. \r\n\r\n     at System.Net.Http.HttpConnection.WriteStringAsync(String s) \r\n\r\n     at System.Net.Http.HttpConnection.WriteHeadersAsync(HttpHeaders headers, String cookiesFromContainer) \r\n\r\n     at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) \r\n\r\n     at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task'1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) \r\n\r\n     at Ocelot.Requester.HttpClientHttpRequester.GetResponse(DownstreamContext context) errors found in ResponderMiddleware. Setting error response for request path:/api/v1/Products, request method: POST` \r\nSteps to Reproduce the Problem\r\nAdd a header with a non ASCII character.\r\nSpecifications\r\nVersion: 13.0.0\r\n\r\nPlatform: Windows 10 x64"},"comment":{"url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/comments/473119388","html_url":"https://github.com/ThreeMammals/Ocelot/issues/815#issuecomment-473119388","issue_url":"https://api.github.com/repos/ThreeMammals/Ocelot/issues/815","id":473119388,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MzExOTM4OA==","user":{"login":"zpc870921","id":9030696,"node_id":"MDQ6VXNlcjkwMzA2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/9030696?v=4","gravatar_id":"","url":"https://api.github.com/users/zpc870921","html_url":"https://github.com/zpc870921","followers_url":"https://api.github.com/users/zpc870921/followers","following_url":"https://api.github.com/users/zpc870921/following{/other_user}","gists_url":"https://api.github.com/users/zpc870921/gists{/gist_id}","starred_url":"https://api.github.com/users/zpc870921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zpc870921/subscriptions","organizations_url":"https://api.github.com/users/zpc870921/orgs","repos_url":"https://api.github.com/users/zpc870921/repos","events_url":"https://api.github.com/users/zpc870921/events{/privacy}","received_events_url":"https://api.github.com/users/zpc870921/received_events","type":"User","site_admin":false},"created_at":"2019-03-15T00:52:27Z","updated_at":"2019-03-15T00:52:27Z","author_association":"NONE","body":"@thiagoloureiro \r\nyes, I'm sure my ocelot api is .net core 2.2 !"}}
{"actor":{"display_login":"zpc870921"}}