Val Packett

Results 343 comments of Val Packett

I'm not sure that spawning an ibrowse worker per download is the right idea, the built-in pooling should work better. Try without the `direct` stuff. (Also, you're not expecting that...

Hi. That's weird. HTTPotion would *never* send something that looks like `{:ok, …}` — async responses are `%HTTPotion.AsyncSomething{…}.` `{ :ok, status_code, headers, body }` is the format of synchronous responses...

There are many [debugging tools](https://github.com/h4cc/awesome-elixir#debugging). I don't know which is the best one.

btw, to find the default CA bundle, you can do something like ```elixir def default_cert_bundle() do cond do File.exists?("/etc/ssl/cert.pem") -> "/etc/ssl/cert.pem" File.exists?("/etc/pki/tls/cert.pem") -> "/etc/pki/tls/cert.pem" File.exists?("/usr/lib/ssl/cert.pem") -> "/usr/lib/ssl/cert.pem" File.exists?("/etc/ssl/certs/ca-certificates.crt") -> "/etc/ssl/certs/ca-certificates.crt"...

What happens when you make that request with [ibrowse](https://github.com/cmullaparthi/ibrowse) directly? > Freebsd 11 nice :)

Looks like it might be [ERL-192](https://bugs.erlang.org/browse/ERL-192). Try forcing a newer TLS version: ```elixir HTTPotion.get "https://check-tls.akamaized.net", [ ibrowse: [ ssl_options: [ versions, [:'tlsv1.2'] ] ] ] ```

Good catch. I'm not sure how 304 got there. I think we should not crash even on a 302 with no Location, I'll add handling for that

[I'm not using httpotion anymore](https://github.com/myfreeweb/httpotion/commit/766b435b12d4e989498aca67e719145fee57d858). If you implement this, I can merge of course, but I'm not going to add any features.

There's an example of passing ibrowse options in the readme: ```elixir HTTPotion.get "https://check-tls.akamaized.net", [ ibrowse: [ ssl_options: [ versions, [:'tlsv1.1'] ] ] ] ``` And you can use the `default_ibrowse`...