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
+3
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,9 @@ 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 that some errors are created by dispatcher. If you plan to check `instanceof errors.UndiciError` then don't use the default global dispatcher,
32
+
as it may come from another `undici` module and have its own errors classes.
33
+
31
34
### `SocketError`
32
35
33
36
The `SocketError` has a `.socket` property which holds socket metadata:
0 commit comments