{:error, :timeout} on large document
Hello. I use fast_html
and I got error with large document.
For example:
Small document:
:fast_html.decode("body")
{:ok, [{"html", [], [{"head", [], []}, {"body", [], ["body"]}]}]}
It is ok.
Large document
{:ok, %{body: body}} = HTTPoison.get("https://www.amazon.com/")
:fast_html.decode(body)
{:error, :timeout}
Error:
iex(master_630c8994@127.0.0.1)15>
##### 17:02:20.673 error_logger={"tag":"error"} pid=<0.659.0> [error] ** Node :"myhtml_4f71e51c@127.0.0.1" not responding **
** Removing (timedout) connection **
kill: 22319: No such process
##### 17:02:20.690 domain=otp error_logger={"tag":"error"} file=gen_server.erl function=error_info/7 line=889 mfa=:gen_server.error_info/7 module=gen_server pid=<0.656.0> registered_name=FastHtml.Cnode [error] GenServer FastHtml.Cnode terminating
** (stop) :nodedown
Last message: {:nodedown, :"myhtml_4f71e51c@127.0.0.1"}
State: %{addr: :"myhtml_4f71e51c@127.0.0.1", exec_path: "/Users/dmitrij/work/trb/_build/dev/lib/fast_html/priv/myhtml_worker", hostname: "127.0.0.1", pid: 22319, sname: "myhtml_4f71e51c", spawn_inactive_timeout: 10000}
What's wrong? I tried different version erlang and elixir, I tried different document. Problem persists constantly
Erlang: 23.0.2 Elixir: 1.10.0 MacOS Mojave