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
So I'm trying to reproduce an error like 'ETIMEDOUT', 'ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND'... using nock and in got I remember to do something like
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I'm trying to reproduce an error like 'ETIMEDOUT', 'ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND'... using nock and in got I remember to do something like
But doing the same with ky I'm not able to handle correctly in the catch block as the HTTPError has something like:
Is this the way to handle this type of errors in ky? using the
error.response.code
?Best regards
Beta Was this translation helpful? Give feedback.
All reactions