Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Gun errors with Stream #118

Open
sleipnir opened this issue Feb 15, 2022 · 0 comments
Open

Gun errors with Stream #118

sleipnir opened this issue Feb 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@sleipnir
Copy link
Member

sleipnir commented Feb 15, 2022

Describe the bug

While I was working to add support for Forwards and Side Effects I ended up noticing that the gRPC client of the Elixir library that uses the Gun library had some errors when I tried to return a Stream mapped with the results of the requests to the user role as a return in calling a GenServer.

Error:

gun-error

I was only able to solve the problem when I materialized the stream through an Enum.to_list() and returned a list instead of the Stream:

gun-success

While this works for the moment and I keep this workaround for now I believe this approach is not the best approach to what we need to do.
The Elixir gRPC library is pretty bad to work with stream, its API is quite confusing and passive of errors in its use and from time to time I end up encountering these kinds of strange errors.
It is essential that we manage to work well with un-bounded streams (infinite streams) and we need to quickly find an alternative to this library. We recently forked this library and renamed it Falco, we need to speed up work on this version to resolve these issues

@sleipnir sleipnir added the bug Something isn't working label Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant