Skip to content

CaseClauseError still causes headaches, since the error tells nothing that there's a problem with the URL #490

Open
@apohllo

Description

@apohllo

Definitely returning:

** (CaseClauseError) no case clause matching: []
    (hackney 1.20.1) /home/apohllo/src/projekty/exaile/epo/deps/hackney/src/hackney_url.erl:248: :hackney_url.parse_netloc/2
    (hackney 1.20.1) /home/apohllo/src/projekty/exaile/epo/deps/hackney/src/hackney.erl:351: :hackney.request/5
    (httpoison 1.8.2) lib/httpoison/base.ex:846: HTTPoison.Base.request/6
    iex:33: (file)

for a call:

HTTPoison.get("/en/abc")

is totally unexpected. I spend two days debugging my own code, inspecting all clauses to finally find out that I was passing a relative URL.

Please send a descriptive error, not a cryptic clause matching message.

This was already reported, but the problem still exists so I am opening a new issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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