# \#httpoison

**URL:** https://forum.elixirforum.com/tag/httpoison/672.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Preferred HTTP library: Req or HTTPoison?](https://forum.elixirforum.com/t/preferred-http-library-req-or-httpoison/71163)

<div class="topic-metadata">

**Author:** [@itzmidinesh](https://forum.elixirforum.com/u/itzmidinesh)\
**Replies:** 6\
**Last updated:** [October 28, 2026, 12:31am UTC](https://forum.elixirforum.com/t/preferred-http-library-req-or-httpoison/71163 "2026-10-28T00:31:08Z")

</div>

Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison. Req looks modern and composable, which is appealing. But, HTTPoison has been arou…

---

## [Httpoison post request returns %HTTPoison.Error{id: nil, reason: {:tls\_alert, 'internal error'}}}](https://forum.elixirforum.com/t/httpoison-post-request-returns-httpoison-error-id-nil-reason-tls-alert-internal-error/20553)

<div class="topic-metadata">

**Author:** [@cedric5](https://forum.elixirforum.com/u/cedric5)\
**Replies:** 6\
**Last updated:** [March 8, 2025, 7:46pm UTC](https://forum.elixirforum.com/t/httpoison-post-request-returns-httpoison-error-id-nil-reason-tls-alert-internal-error/20553 "2025-03-08T19:46:16Z")

</div>

Hello I am a beginner in Elixir and I’m currently running into the following issue. When trying to make a post request to a server using httpoison. def send(xml\_message) do url = "https://\*\*\*\*\*\*/LIMessageProcessi…

---

## [Http request from within Elixir (BEAM) timeout when a Docker container is running](https://forum.elixirforum.com/t/http-request-from-within-elixir-beam-timeout-when-a-docker-container-is-running/67740)

<div class="topic-metadata">

**Author:** [@tduccuong](https://forum.elixirforum.com/u/tduccuong)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 12:34am UTC](https://forum.elixirforum.com/t/http-request-from-within-elixir-beam-timeout-when-a-docker-container-is-running/67740 "2024-12-10T00:34:46Z")

</div>

Hi everyone, I have an Elixir app that sends out HTTP requests using HTTPoison. Usually it works fine, but I noticed it gives timeout error occasionally when a Docker container running in the same machine. The number of…

---

## [HTTPoison request with authentication](https://forum.elixirforum.com/t/httpoison-request-with-authentication/65264)

<div class="topic-metadata">

**Author:** [@undeadko](https://forum.elixirforum.com/u/undeadko)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 12:28pm UTC](https://forum.elixirforum.com/t/httpoison-request-with-authentication/65264 "2024-07-31T12:28:28Z")

</div>

Hello everyone, I am trying to access a web page with some pictures in it, so that I can download the pictures and then do some fun things with them. Very much like this post here with the smoothies https://medium.com/@…

---

## [How to output log about request information with httpoison and hackney?](https://forum.elixirforum.com/t/how-to-output-log-about-request-information-with-httpoison-and-hackney/64826)

<div class="topic-metadata">

**Author:** [@sora1](https://forum.elixirforum.com/u/sora1)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 12:13pm UTC](https://forum.elixirforum.com/t/how-to-output-log-about-request-information-with-httpoison-and-hackney/64826 "2024-07-09T12:13:42Z")

</div>

What I want to do I want to output log about request information with httpoison and hackney. I found :hackney\_trace.enable that can output to standard output. enable function has two arguments, you cass pass function t…

---

## [Error when trying to make a post request with HTTPoison](https://forum.elixirforum.com/t/error-when-trying-to-make-a-post-request-with-httpoison/62281)

<div class="topic-metadata">

**Author:** [@Cam](https://forum.elixirforum.com/u/Cam)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 7:14pm UTC](https://forum.elixirforum.com/t/error-when-trying-to-make-a-post-request-with-httpoison/62281 "2024-03-13T19:14:28Z")

</div>

I’m trying to make a post request to a Slack webhook. I’ve got a pretty straightforward post request here: defmodule MyApp.Slack do def send(message) do HTTPoison.post( System.get\_env("SLACK\_WEBHOOK\_URL\_QUES…

---

## [(Syntax Error) invalid or reserved Unicode code point](https://forum.elixirforum.com/t/syntax-error-invalid-or-reserved-unicode-code-point/41604)

<div class="topic-metadata">

**Author:** [@Doerge](https://forum.elixirforum.com/u/Doerge)\
**Replies:** 11\
**Last updated:** [March 5, 2024, 6:27pm UTC](https://forum.elixirforum.com/t/syntax-error-invalid-or-reserved-unicode-code-point/41604 "2024-03-05T18:27:17Z")

</div>

Hey everybody, I get a response from a (pretty funky) API, and am trying to decode it with HTTPoison. It fails with something like this: {:error, %Poison.ParseError{ data: " { \\"config\\": ...", skip: 86293, …

---

## [HTTPoison TLSv1.3 CHACHA20-POLY1305 issue: {:error, %HTTPoison.Error{reason: :timeout, id: nil}}](https://forum.elixirforum.com/t/httpoison-tlsv1-3-chacha20-poly1305-issue-error-httpoison-error-reason-timeout-id-nil/61798)

<div class="topic-metadata">

**Author:** [@auryn](https://forum.elixirforum.com/u/auryn)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 6:22pm UTC](https://forum.elixirforum.com/t/httpoison-tlsv1-3-chacha20-poly1305-issue-error-httpoison-error-reason-timeout-id-nil/61798 "2024-02-21T18:22:27Z")

</div>

Hey Somehow I have a Problem. If I send a HTTPoison GET request against a webpage using the AEAD-CHACHA20-POLY1305-SHA256 encryption I get an timeout. Somehow not even an handshake issue. The code i tried default…

---

## [Sending HTTPoison from phenix app to a device on the same network](https://forum.elixirforum.com/t/sending-httpoison-from-phenix-app-to-a-device-on-the-same-network/61750)

<div class="topic-metadata">

**Author:** [@Oscar\_dev](https://forum.elixirforum.com/u/Oscar_dev)\
**Replies:** 11\
**Last updated:** [February 20, 2024, 12:05pm UTC](https://forum.elixirforum.com/t/sending-httpoison-from-phenix-app-to-a-device-on-the-same-network/61750 "2024-02-20T12:05:22Z")

</div>

Hello, I am trying to send a request to a server on the same network. def unload\_model(conn, %{"id" =\> id}) do case Frontend.Repo.get(LoadedModel, id) do nil -\> {:error, "LoadedModel with id #{id} n…

---

## [Case clause error. Http poison](https://forum.elixirforum.com/t/case-clause-error-http-poison/61103)

<div class="topic-metadata">

**Author:** [@apoorv-2204](https://forum.elixirforum.com/u/apoorv-2204)\
**Replies:** 1\
**Last updated:** [January 19, 2024, 1:58pm UTC](https://forum.elixirforum.com/t/case-clause-error-http-poison/61103 "2024-01-19T13:58:34Z")

</div>

\* (ErlangError) Erlang error: {{{:case\_clause, \[\]}, \[{:ssl\_gen\_statem, :iovec\_from\_front, 4, \[file: 'ssl\_gen\_statem.erl', line: 1636\]}, {:ssl\_gen\_statem, :read\_application\_data\_bin, 8, \[file: 'ssl\_gen\_statem.erl', lin…

---

## [Elixir newbie can't compile first project: could not compile dependency :ssl\_fun\_verify](https://forum.elixirforum.com/t/elixir-newbie-cant-compile-first-project-could-not-compile-dependency-ssl-fun-verify/60526)

<div class="topic-metadata">

**Author:** [@eye\_contact](https://forum.elixirforum.com/u/eye_contact)\
**Replies:** 6\
**Last updated:** [December 22, 2023, 4:50pm UTC](https://forum.elixirforum.com/t/elixir-newbie-cant-compile-first-project-could-not-compile-dependency-ssl-fun-verify/60526 "2023-12-22T16:50:56Z")

</div>

I want to use httpoison in my first project in Elixir. It’s the only dependency I’ve put into my mix.exs file. I would love some helpful direction, please and thank you :slight\_smile: I see no errors when I run mix deps…

---

## [Can't get basic HTTPoison.post working? "1st argument: not an iodata term"](https://forum.elixirforum.com/t/cant-get-basic-httpoison-post-working-1st-argument-not-an-iodata-term/60261)

<div class="topic-metadata">

**Author:** [@mikejm](https://forum.elixirforum.com/u/mikejm)\
**Replies:** 5\
**Last updated:** [December 10, 2023, 1:35am UTC](https://forum.elixirforum.com/t/cant-get-basic-httpoison-post-working-1st-argument-not-an-iodata-term/60261 "2023-12-10T01:35:04Z")

</div>

I am attempting to make my first Phoenix HTTP request using HTTPoison but it is not working and I cannot figure out why. If I create a basic project with HTTPoison in it, then go to iex on this project, I type in the fo…

---

## [HTTP SSL error: "Unknown CA"—going down a Rabbit hole. Maybe an asdf Erlang issue?](https://forum.elixirforum.com/t/http-ssl-error-unknown-ca-going-down-a-rabbit-hole-maybe-an-asdf-erlang-issue/59726)

<div class="topic-metadata">

**Author:** [@dogweather](https://forum.elixirforum.com/u/dogweather)\
**Replies:** 12\
**Last updated:** [November 24, 2023, 4:48pm UTC](https://forum.elixirforum.com/t/http-ssl-error-unknown-ca-going-down-a-rabbit-hole-maybe-an-asdf-erlang-issue/59726 "2023-11-24T16:48:51Z")

</div>

I get this error with both :httpc and HTTPoison.get. Here’s HTTPoison: iex(1)\> HTTPoison.get! "https://grad.tamu.edu/" 22:15:54.179 \[notice\] TLS :client: In state :certify at ssl\_handshake.erl:2138 generated CLIENT ALE…

---

## [HTTPoison proxy option not working](https://forum.elixirforum.com/t/httpoison-proxy-option-not-working/49935)

<div class="topic-metadata">

**Author:** [@orborn](https://forum.elixirforum.com/u/orborn)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 11:09pm UTC](https://forum.elixirforum.com/t/httpoison-proxy-option-not-working/49935 "2022-09-02T23:09:15Z")

</div>

I have this curl request curl -x "http://proxy-server.com:8001" -k "https://httpbin.org/ip" The curl request is going through the proxy server and I’m getting at each hit a new ip address (which is the expected behavio…

---

## [HTTPoison.Error sending a mail with Brevo : {:options, :incompatible, \[verify: :verify\_peer, cacerts: :undefined\]}](https://forum.elixirforum.com/t/httpoison-error-sending-a-mail-with-brevo-options-incompatible-verify-verify-peer-cacerts-undefined/57129)

<div class="topic-metadata">

**Author:** [@GoulvenClech](https://forum.elixirforum.com/u/GoulvenClech)\
**Replies:** 8\
**Last updated:** [October 10, 2023, 4:00pm UTC](https://forum.elixirforum.com/t/httpoison-error-sending-a-mail-with-brevo-options-incompatible-verify-verify-peer-cacerts-undefined/57129 "2023-10-10T16:00:56Z")

</div>

Hi everyone, Recently, our transactional emails won’t launch and return HTTPoison.Error like : %HTTPoison.Error{reason: {:options, :incompatible, \[verify: :verify\_peer, cacerts: :undefined\]}, id: nil} I’m using the Br…

---

## [HTTPoison (Hackney) Follow Redirect without Reusing Authorization Headers](https://forum.elixirforum.com/t/httpoison-hackney-follow-redirect-without-reusing-authorization-headers/56606)

<div class="topic-metadata">

**Author:** [@nikody](https://forum.elixirforum.com/u/nikody)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 11:59am UTC](https://forum.elixirforum.com/t/httpoison-hackney-follow-redirect-without-reusing-authorization-headers/56606 "2023-06-21T11:59:53Z")

</div>

I noticed that the follow\_redirect: true option used in HTTPoison (and therefore Hackney) when combined with an Authorization header (in my case basic auth) makes subsequent requests with the same Authorization headers. …

---

## [Dependency Warning: Poison.decode!/2 defined in application :poison is used by the current application but the ... does not depend on :poison](https://forum.elixirforum.com/t/dependency-warning-poison-decode-2-defined-in-application-poison-is-used-by-the-current-application-but-the-does-not-depend-on-poison/55208)

<div class="topic-metadata">

**Author:** [@yeroc](https://forum.elixirforum.com/u/yeroc)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 1:18am UTC](https://forum.elixirforum.com/t/dependency-warning-poison-decode-2-defined-in-application-poison-is-used-by-the-current-application-but-the-does-not-depend-on-poison/55208 "2023-04-12T01:18:45Z")

</div>

Hi all! I’m getting a warning- Poison.decode!/2 defined in application :poison is used by the current application but the current application does not depend on :poison. To fix this, you must do one of: 1. If :poison…

---

## [Extracting All Items of List Inside Map](https://forum.elixirforum.com/t/extracting-all-items-of-list-inside-map/55145)

<div class="topic-metadata">

**Author:** [@yeroc](https://forum.elixirforum.com/u/yeroc)\
**Replies:** 5\
**Last updated:** [April 9, 2023, 6:27pm UTC](https://forum.elixirforum.com/t/extracting-all-items-of-list-inside-map/55145 "2023-04-09T18:27:55Z")

</div>

Hello all! A bit stumped on interpreting how to parse and extract my desired data from an API’s response with HTTPoison and Poison. I think I’m missing something simple. Let’s say I want all the applicant names from “h…

---

## [Using nested map params with HTTPoison](https://forum.elixirforum.com/t/using-nested-map-params-with-httpoison/54939)

<div class="topic-metadata">

**Author:** [@BillBryson](https://forum.elixirforum.com/u/BillBryson)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 3:15am UTC](https://forum.elixirforum.com/t/using-nested-map-params-with-httpoison/54939 "2023-03-31T03:15:45Z")

</div>

Hello, I’m trying to integrate with an API that expects a json payload in the following format: ... "foobar": \[ { "roles": "admin", "email": "foo@example.com" } \] But I’m having a hard time trying…

---

## [HTTPS handshake error: Fatal - Handshake Failure](https://forum.elixirforum.com/t/https-handshake-error-fatal-handshake-failure/36877)

<div class="topic-metadata">

**Author:** [@zkessin](https://forum.elixirforum.com/u/zkessin)\
**Replies:** 16\
**Last updated:** [March 17, 2023, 3:42am UTC](https://forum.elixirforum.com/t/https-handshake-error-fatal-handshake-failure/36877 "2023-03-17T03:42:21Z")

</div>

I am trying to hit an HTTPS endpoint and when I call it HTTPoison returns this error {:error, %HTTPoison.Error{id: nil, reason: {:tls\_alert, {:handshake\_failure, 'TLS client: In state hello received SERVER ALERT: Fatal…

---

## [HTTPoison request: "1st argument: the table identifier does not refer to an existing ETS table" when calling function outside module](https://forum.elixirforum.com/t/httpoison-request-1st-argument-the-table-identifier-does-not-refer-to-an-existing-ets-table-when-calling-function-outside-module/53444)

<div class="topic-metadata">

**Author:** [@Pistrie](https://forum.elixirforum.com/u/Pistrie)\
**Replies:** 5\
**Last updated:** [January 27, 2023, 12:22pm UTC](https://forum.elixirforum.com/t/httpoison-request-1st-argument-the-table-identifier-does-not-refer-to-an-existing-ets-table-when-calling-function-outside-module/53444 "2023-01-27T12:22:07Z")

</div>

I am trying to use HTTPoison to get some data from an API, but I’m getting an error which I’m not able to resolve. My project currently looks like this: defmodule EnergyZeroViewer do def execute do data = get\_data…

---

## [Do automatic https request to update data in my database](https://forum.elixirforum.com/t/do-automatic-https-request-to-update-data-in-my-database/52097)

<div class="topic-metadata">

**Author:** [@HelpMeToKeepMyJob](https://forum.elixirforum.com/u/HelpMeToKeepMyJob)\
**Replies:** 3\
**Last updated:** [November 29, 2022, 2:14pm UTC](https://forum.elixirforum.com/t/do-automatic-https-request-to-update-data-in-my-database/52097 "2022-11-29T14:14:55Z")

</div>

Hello guys ! I just started elixir a couple of days ago but I’m still a total beginner and I need your help to develop my API. Actually, I’m working on a project that must use a third party API (coinapi.io) to update so…

---

## [Handling Multipart response of adobe pdf api in elixir](https://forum.elixirforum.com/t/handling-multipart-response-of-adobe-pdf-api-in-elixir/49518)

<div class="topic-metadata">

**Author:** [@amal-sultan](https://forum.elixirforum.com/u/amal-sultan)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 1:36pm UTC](https://forum.elixirforum.com/t/handling-multipart-response-of-adobe-pdf-api-in-elixir/49518 "2022-09-16T13:36:47Z")

</div>

Hi Everyone, I am using Adobe pdf api to convert html into pdf. I tried the api on postman and it responds with multipart response,(I saved the response through “save response” option in postman and the document is as ex…

---

## [Intercepting (and modifying) outgoing HttpPoson requests](https://forum.elixirforum.com/t/intercepting-and-modifying-outgoing-httpposon-requests/50104)

<div class="topic-metadata">

**Author:** [@VeljkoMaksimovic](https://forum.elixirforum.com/u/VeljkoMaksimovic)\
**Replies:** 10\
**Last updated:** [September 7, 2022, 11:08am UTC](https://forum.elixirforum.com/t/intercepting-and-modifying-outgoing-httpposon-requests/50104 "2022-09-07T11:08:23Z")

</div>

Before I start, I know there is a similar question, but I could not find an adequate answer there. I’m working on a service that interacts with GitHub using Tentacat library (which then uses HttpPoison to send requests …

---

## [Encoding multipart/form-data HTTP body](https://forum.elixirforum.com/t/encoding-multipart-form-data-http-body/23443)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://forum.elixirforum.com/u/hubertlepicki)\
**Replies:** 35\
**Last updated:** [September 4, 2022, 10:18pm UTC](https://forum.elixirforum.com/t/encoding-multipart-form-data-http-body/23443 "2022-09-04T22:18:43Z")

</div>

Does anyone here know of an Elixir library which would help me assemble bodies of HTTP requests with “multipart/form-data” Content-type? This would be the reverse of plug/lib/plug/parsers/multipart.ex at v1.8.2 · elixir…

---

## [Upload to S3 from Google Drive by downloading the file in chunks and uploading it to S3 at the same time](https://forum.elixirforum.com/t/upload-to-s3-from-google-drive-by-downloading-the-file-in-chunks-and-uploading-it-to-s3-at-the-same-time/38142)

<div class="topic-metadata">

**Author:** [@silvagustin](https://forum.elixirforum.com/u/silvagustin)\
**Replies:** 11\
**Last updated:** [September 3, 2022, 2:13am UTC](https://forum.elixirforum.com/t/upload-to-s3-from-google-drive-by-downloading-the-file-in-chunks-and-uploading-it-to-s3-at-the-same-time/38142 "2022-09-03T02:13:07Z")

</div>

Hello everyone. I’m working on an application that lists all your Google Drive files and allows you to upload them to our app (which uses S3). Unfortunately, it’s not possible to use a file’s URL given by Drive to uplo…

---

## [HTTPoison multipart post](https://forum.elixirforum.com/t/httpoison-multipart-post/49164)

<div class="topic-metadata">

**Author:** [@pramsky](https://forum.elixirforum.com/u/pramsky)\
**Replies:** 9\
**Last updated:** [July 30, 2022, 2:05pm UTC](https://forum.elixirforum.com/t/httpoison-multipart-post/49164 "2022-07-30T14:05:33Z")

</div>

Hello! I have the following curl request (confirmed working) curl --request POST \\ --url https://example.net \\ --header 'Authorization: Bearer as…

---

## [How to construct HTTPoison requests with dynamic values?](https://forum.elixirforum.com/t/how-to-construct-httpoison-requests-with-dynamic-values/49206)

<div class="topic-metadata">

**Author:** [@Maxximiliann](https://forum.elixirforum.com/u/Maxximiliann)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 10:25pm UTC](https://forum.elixirforum.com/t/how-to-construct-httpoison-requests-with-dynamic-values/49206 "2022-07-28T22:25:44Z")

</div>

defmodule Prototyping do def main() do order\_type = "sell" amount = 1567516 price = 1351965 request = %HTTPoison.Request{ method: :post, url: "https://matcher.waves.exchange/matche…

---

## [Unit Testing HTTP Client error response](https://forum.elixirforum.com/t/unit-testing-http-client-error-response/47952)

<div class="topic-metadata">

**Author:** [@Bounti](https://forum.elixirforum.com/u/Bounti)\
**Replies:** 8\
**Last updated:** [May 25, 2022, 8:12am UTC](https://forum.elixirforum.com/t/unit-testing-http-client-error-response/47952 "2022-05-25T08:12:37Z")

</div>

Hello all, Let’s say we have a module / wrapper that carries out calls to an external HTTP service to fetch the body of the response, for example: defmodule RandomThirdPartyClient do def perform\_request(data) do …

---

## [Httpoison POST, is this the correct way?](https://forum.elixirforum.com/t/httpoison-post-is-this-the-correct-way/47219)

<div class="topic-metadata">

**Author:** [@owaisqayum](https://forum.elixirforum.com/u/owaisqayum)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 9:07pm UTC](https://forum.elixirforum.com/t/httpoison-post-is-this-the-correct-way/47219 "2022-04-14T21:07:07Z")

</div>

I am translating this curl POST request to HTTPoison. Is this the correct way CURL: curl -X POST “http://example.com/index?args=20” --data-binary @hello.sh HTTPoison: url = "http://example.com/index?args=20" body = {…

[Next page](https://forum.elixirforum.com/tag/httpoison/672.md?match_all_tags=true&page=1&tags%5B%5D=httpoison)
