You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Server-Sent-Events for graphql subscriptions and I am running into the following issue when the client disconnects, for example through closing of a tab or reloading.
[error] ** (CaseClauseError) no case clause matching: {:error, "closed"}
(absinthe_plug 1.5.8) lib/absinthe/plug.ex:385: Absinthe.Plug.subscribe_loop/3
It seems to me I would just need to add {:error, "closed"}, however, since it feels a bit redundant and I am quite new to elixir wanted to make sure this is what is indeed needed.
I can create a PR for it though.
It might be a difference in how Bandit and Cowboy are handling errors, not sure if I can possibly overwrite this to actually return atoms instead, couldn't find anything though.
The text was updated successfully, but these errors were encountered:
Hello everyone 👋 Thanks for this great package!
I am using
absinthe_plug
(1.5.8)I use Server-Sent-Events for graphql subscriptions and I am running into the following issue when the client disconnects, for example through closing of a tab or reloading.
for the lines here:
absinthe_plug/lib/absinthe/plug.ex
Lines 373 to 397 in 3a984cc
It seems to me I would just need to add
{:error, "closed"}
, however, since it feels a bit redundant and I am quite new to elixir wanted to make sure this is what is indeed needed.I can create a PR for it though.
It might be a difference in how Bandit and Cowboy are handling errors, not sure if I can possibly overwrite this to actually return atoms instead, couldn't find anything though.
The text was updated successfully, but these errors were encountered: