Skip to content

"Unable to connect to Algolia" on OTP 26+ #43

@mweidner037

Description

@mweidner037

Erlang OTP 26 changes the default settings for SSL connections (ref), which currently causes an error here:

ssl_options: [{:versions, [:"tlsv1.2"]}]

The error shows up to users of this library as (MatchError) no match of right hand side value: {:error, "Unable to connect to Algolia"}. The internal error (from Hackney) is {:error, {:options, :incompatible, [verify: :verify_peer, cacerts: :undefined]}}.

I can make a PR restoring the (insecure) OTP 25 defaults if interested, though I realize this repo is not active anymore. For others encountering the issue, consider staying on OTP 25 or switching to https://github.com/WTTJ/algoliax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions