emerleite / emerleite/tesla_cache

Handling error responses

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Hi,

according to @teamon
> All middleware must handle both {:ok, env} and {:error, ...} results returned from Tesla.run()

However, it seems that this middleware does not handle error tuples which forces users to skip this middleware in case of an error tuple response or let it crash.

I've observed this behaviour using version 1.1.0. Would you like me to open a PR for this? :)

See https://github.com/teamon/tesla/issues/391

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.