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
Copy file name to clipboardExpand all lines: docs/docs/api/Errors.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ import { errors } from 'undici'
28
28
|`ResponseExceededMaxSizeError`|`UND_ERR_RES_EXCEEDED_MAX_SIZE`| response body exceed the max size allowed |
29
29
|`SecureProxyConnectionError`|`UND_ERR_PRX_TLS`| tls connection to a proxy failed |
30
30
31
+
Be aware of the possible difference between the global dispatcher version and the actual undici version you might be using. We recommend to avoid the check `instanceof errors.UndiciError` and seek for the `error.code === '<error_code>'` instead to avoid inconsistencies.
31
32
### `SocketError`
32
33
33
34
The `SocketError` has a `.socket` property which holds socket metadata:
0 commit comments