fix(xen-api/getResource): don't fail silently when HTTP request fails without response (#6970)
Seen while investigating zammad#16309
This commit is contained in:
committed by
GitHub
parent
685400bbf8
commit
66bee59774
@@ -29,6 +29,7 @@
|
||||
|
||||
<!--packages-start-->
|
||||
|
||||
- xen-api patch
|
||||
- xo-server patch
|
||||
- xo-server-auth-ldap patch
|
||||
- xo-web patch
|
||||
|
||||
@@ -419,7 +419,7 @@ export class Xapi extends EventEmitter {
|
||||
signal: $cancelToken,
|
||||
}),
|
||||
{
|
||||
when: error => error.response.statusCode === 302,
|
||||
when: error => error.response !== undefined && error.response.statusCode === 302,
|
||||
onRetry: async error => {
|
||||
const response = error.response
|
||||
if (response === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user