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
Authentication errors happen during connection initialization when INIT
message is send. Server validates provided credentials and then responds
with either SUCCESS if credentials are fine or with FAILURE and closes
the connection when credentials are wrong. Previously auth errors were
not propagated to external observers (including those defined by user's
Result promise). This means auth errors were only propagated to
`Driver.onError` callback but all other places received `ServiceUnavailable`
or `SessionExpired` because of closed connection.
This commit makes driver treat INIT error as fatal and corresponding
connection as broken. Initialization error is memorized and propagated
to all message observers. So they see specific failure reason and not
generic `ServiceUnavailable` \ `SessionExpired`.
0 commit comments