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
In Axios, it throws an error when status code is greater than 400 in stream mode, but the response is never read, which causes onResponseReceived is never called.
Although that is an expected behaviour, we should never do additional things when downstream caller is not going to do.
An enhancement may be:
can we detect the case, and peek the response when response is not actually read, so that onResponseReceived hook is triggerred.
The text was updated successfully, but these errors were encountered:
chaoyangnz
changed the title
onResponseReceived hook are not called when response is not read
onResponseReceived hook is not called when response is not read
Apr 20, 2021
In Axios, it throws an error when status code is greater than 400 in stream mode, but the response is never read, which causes
onResponseReceived
is never called.Although that is an expected behaviour, we should never do additional things when downstream caller is not going to do.
An enhancement may be:
The text was updated successfully, but these errors were encountered: