I am working on Elixir, using Erlang built-in :httpc
function to perform a get request.
if {:ok, {status, header, body}} = :httpc.request(:get, {img, []}, [], []) do
# ...
end
The functions are working well. Then after running mix dialyzer, it returns errors:
:0:unknown_function
Function :httpc.request/4 does not exist.
________________________________________________________________________________
lib/vutuv/accounts.ex:301:guard_fail
Guard test:
_ :: {:ok, {_, _, _}}
===
false
can never succeed.
________________________________________________________________________________
done (warnings were emitted)
I put this line to tell Dialyzer to skip checking the function.
@dialyzer {:nowarn_function, get_gravatar: 2}
However, the error still persists
:0:unknown_function
Function :httpc.request/4 does not exist.
________________________________________________________________________________
done (warnings were emitted)