PSPDFKit-labs/bypass

Error raised when testing with an https outbound request

Aberta

#63 aberto em 25 de jul. de 2018

 (11 comentários) (1 reação) (0 responsável)Elixir (89 forks)batch import
help wanted

Métricas do repositório

Stars
 (847 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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!!!

Guia do colaborador