overture8 / mangoex

Elixir wrapper for the MangoPay API
3 stars 3 forks source link

Not dealing with :timeout's gracefully #13

Closed overture8 closed 7 years ago

overture8 commented 7 years ago

Error:

{:badkey, :body, %HTTPotion.ErrorResponse{message: "req_timedout"}}

Backtrace:

(mangoex) lib/mangoex/api/base.ex:68: Mangoex.API.Base.decode_json/1
(mangoex) lib/mangoex/client.ex:92: Mangoex.Client.handle_call/3
(stdlib) gen_server.erl:636: :gen_server.try_handle_call/4
(stdlib) gen_server.erl:665: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3