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

[Finch] Change error handling, fix for response stream #573

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

hodak
Copy link
Collaborator

@hodak hodak commented Apr 20, 2023

SSE introduced inconsistent error here: https://github.com/elixir-tesla/tesla/blob/tt/finch-stream/lib/tesla/adapter/finch.ex#L143
Finch adapter was always expecting Mint error.

I've looked at other adapters and seems like {:error, :timeout} is used consistently, previous error-handling implementation would respond with {:error, "timeout"} - thus the change not to use Exception.message/1 anymore. This is potentially a breaking change for anyone using Finch adapter.

@hodak hodak requested a review from teamon April 20, 2023 09:37
@yordis yordis added this to the v2.0 milestone Sep 10, 2023
@teamon teamon merged commit e693721 into tt/finch-stream Apr 11, 2024
@teamon teamon deleted the finch-change-error-handling branch April 11, 2024 12:06
teamon added a commit that referenced this pull request Apr 11, 2024
* Request/Response streaming for Finch adapter
* [Finch] Change error handling, fix for response stream (#573)

---------

Co-authored-by: Adam Hodowany <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants