Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apohllo opened this issue Jul 5, 2024 · 0 comments

Comments

@apohllo
Copy link

apohllo commented Jul 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant