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
When the request function throws (as opposed to emitting an error) it causes cacheable-request to emit an error. This is misleading because errors emitted by cacheable-request are assumed to be caused by a cache error, request errors are handled by listening for the error event on the request object.
However, we can't attach an event listener to the request object in this scenario because the request object wont exist if the request function throws.
We need a clearer way to handle this error.
The text was updated successfully, but these errors were encountered:
Related: sindresorhus/got#392
When the request function throws (as opposed to emitting an error) it causes
cacheable-request
to emit an error. This is misleading because errors emitted bycacheable-request
are assumed to be caused by a cache error, request errors are handled by listening for the error event on the request object.However, we can't attach an event listener to the request object in this scenario because the request object wont exist if the request function throws.
We need a clearer way to handle this error.
The text was updated successfully, but these errors were encountered: