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 am using the gen_changes behavior and if the server disconnects the app throws an exception on
State2 = case Msg of
{done, LastSeq} ->
State#gen_changes_state{last_seq=LastSeq};
{change, Change} ->
Seq = couchbeam_doc:get_value(<<"seq">>, Change),
State#gen_changes_state{last_seq=Seq}
As hackney returns {hackney_response, Ref, done}
Is there something I am missing? I want my application to just log the error as it is done by /couchbeam_changes_stream.erl and let the handle_change callback in my app to decide what to do (wait for reconnection, or exit.
As a workaround I patched the library to set the state when error to the response from the server.
Thanks for the amazing job!
The text was updated successfully, but these errors were encountered:
@javierg can you share the exception raised? This should be normally catched. If you can also please share the portion of your code that intiate the change.
I am using the gen_changes behavior and if the server disconnects the app throws an exception on
As hackney returns
{hackney_response, Ref, done}
Is there something I am missing? I want my application to just log the error as it is done by
/couchbeam_changes_stream.erl
and let thehandle_change
callback in my app to decide what to do (wait for reconnection, or exit.As a workaround I patched the library to set the state when error to the response from the server.
Thanks for the amazing job!
The text was updated successfully, but these errors were encountered: