cblavier
Tesla timeout on a dummy request
I just setup a new phoenix app, which is quite empty and installed Tesla in it with a very basic setup
{:tesla, "~> 1.4"},
{:jason, "~> 1.2"},
{:hackney, "~> 1.17"}
config :tesla, adapter: Tesla.Adapter.Hackney
Then if I run a fairly simple request from iex, it times out:
iex(1)> Tesla.get("https://login.microsoftonline.com")
{:error, :timeout}
On the same host, I have another application with Tesla installed. I can run the same request without any issue.
Any idea how I could troubleshoot that?
(it’s running on Elixir 1.1.4 / Erlang 25.0)
Marked As Solved
cblavier
Two weeks later, I finally found the issue was Erlang version ![]()
Also Liked
dimitarvp
Likely the second app has a configuration for Tesla (or the underlying HTTP client library) that has a bigger timeout?
dimitarvp
Are you running both apps on the same machine?
If so, you are fully equipped to start inspecting the actual requests that go out (insert IO.inspect or dbg along the way) and you will figure it out. I can’t help you off-hand except these 2-3 quick things I would first look into.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








