mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
parent
e178d67781
commit
dfad5b5c3b
1
changelog.d/551.bugfix
Normal file
1
changelog.d/551.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Don't announce error if a RSS feed request timed out.
|
@ -33,7 +33,7 @@ export class FeedError extends Error {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (axios.isAxiosError(this.cause) && this.cause.code === 'ECONNRESET') {
|
if (axios.isAxiosError(this.cause) && this.cause.code && ['ECONNABORTED', 'ECONNRESET'].includes(this.cause.code)) {
|
||||||
// Fuzzy match this, because it's usually a tempoary error.
|
// Fuzzy match this, because it's usually a tempoary error.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user