-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CancelableRequests timeout too early #579
Comments
Something is applying a 10s timeout. |
Let me try on my side. |
This works fine with const CancelToken = axios.CancelToken
const source = CancelToken.source()
const url = generateUrl('/apps/whatever/sleep')
const options = {
params: {
duration: 30,
},
cancelToken: source.token,
}
axios.get(url, options).then((response) => {
console.debug('success')
}).catch((error) => {
console.debug('error', error)
})
setTimeout(() => {
source.cancel('Request has been cancelled')
}, 35000) |
Well we don't set the duration in Talk. |
Maybe there was a breaking change in an update or something. |
I downgraded to 2.1.0 of this lib and now it works again.Seems the problem is from CancelableRequests:
https://github.com/nextcloud/spreed/blob/516d50836a333b146e70c2f8ab1abe6564fa8328/src/store/messagesStore.js#L850
Originally posted by @nickvergessen in #552 (comment)
The text was updated successfully, but these errors were encountered: