Closed assertnotnull closed 5 months ago
Hey @assertnotnull the code above seem to work fine for me:
iex(2)>
10:45:07.962 [warning] Description: 'Server authenticity is not verified since certificate path validation is not enabled'
Reason: 'The option {verify, verify_peer} and one of the options \'cacertfile\' or \'cacerts\' are required to enable this.'
[
%{
name: "Judas Priest",
url: "https://www.metal-archives.com/bands/Judas_Priest/97"
}
]
10:45:09.800 [debug] Stored item: %{name: "Judas Priest", url: "https://www.metal-archives.com/bands/Judas_Priest/97"}
Could you provide a bit more info about the case? To me it looks like you have a problem with one of inspects in the code above.
Hey @assertnotnull the code above seem to work fine for me:
iex(2)>
10:45:07.962 [warning] Description: 'Server authenticity is not verified since certificate path validation is not enabled'
Reason: 'The option {verify, verify_peer} and one of the options \'cacertfile\' or \'cacerts\' are required to enable this.'
[
%{
name: "Judas Priest",
url: "https://www.metal-archives.com/bands/Judas_Priest/97"
}
]
10:45:09.800 [debug] Stored item: %{name: "Judas Priest", url: "https://www.metal-archives.com/bands/Judas_Priest/97"}
Could you provide a bit more info about the case? To me it looks like you have a problem with one of inspects in the code above.
I have the same problem.
Elixir 1.14.3 (compiled with Erlang/OTP 25) Crawly 0.14
I guess I found the reason. I checked the code of version 0.14 that the local project depends on, and
It is strange that there is no below implementation code in the Request
:
defimpl String.Chars, for: Crawly.Request do
def to_string(s) do
inspect(s)
end
end
But the master branch have it. Is there a problem with the release of 0.14 code?
Yeah, I directly dependet on the master branch in mix.exs
, and the error disappears.
Strange. @zongwu233, as I see that code was added 6 months ago. In any case, I am preparing the 0.15.0, so hopefully it will disappear soon.
Strange. @zongwu233, as I see that code was added 6 months ago. In any case, I am preparing the 0.15.0, so hopefully it will disappear soon.
I have followed the docs and wrote a simple spider but running it gives me a protocol error. Elixir 1.14 Erlang 24 Crawly 0.14
Error: