PSPDFKit-labs/bypass

Error raised when testing with an https outbound request

開放

#63 建立於 2018年7月25日

 (11 則留言) (1 個反應) (0 位負責人)Elixir (89 個分叉)batch import
help wanted

倉庫指標

星標
 (847 顆星)
PR 合併指標
 (30 天內沒有已合併 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!!!

貢獻者指南