PSPDFKit-labs/bypass
Error raised when testing with an https outbound request
オープン
#63 opened on 2018/07/25
help wanted
Repository metrics
- Stars
- (847 個のスター)
- PR merge metrics
- (30d に merged PR はありません)
説明
Hello! First of all I'd like to say I really like and appreciate Bypass!!! However, I'm running into an issue I'm having trouble resolving. I have a test that makes an https scheme outbound request using Bypass, which gives me this error:
11:31:03.775 [error] Cowboy returned 400 because it was unable to parse the request headers.
This may happen because there are no headers, or there are too many headers
or the header name or value are too large (such as a large cookie).
You can customize those values when configuring your http/https
server. The configuration option and default values are shown below:
protocol_options: [
max_header_name_length: 64,
max_header_value_length: 4096,
max_headers: 100,
max_request_line_length: 8096
]
The error is a little confusing because the headers I have are:
[
{"accept", "application/x-www-form-urlencoded"},
{"content-type", "application/x-www-form-urlencoded"}
]
When I change the outbound request scheme to http, the tests pass and no error is raised
It appears that Bypass is not intended to make https outbound requests, and I'm wondering if that is the case, or if there is some sort of configuration I am missing?
Thank you in advance for your help!!!