Open AlissonRA opened 4 years ago
Hi @AlissonRA 👋
I don't understand the options that you passed in your call : await this.$http.get('URL', { OPTIONS })
Relative to the options documentation, there is no configuration for onDownloadProgress
.
Maybe you want to add a hook on it ? Currently, there are only 3 hooks supported by http module : onRequest, onResponse & onError
.
Hello @Geminii
OnDownloadProgress is not an option for nuxt/http but for Ky. Since that is what nuxt/http uses behind the scenes.
The options are forwarded directly to key, see here.
This error is weird, could you try directly by using ky
and confirm there is no error with it?
Hello @Atinux
I tested with the native ky
library and got the same error! Now what can I do? Do I have to open an issue there and ask for correction of this error and as soon as it is corrected return here and ask for the package update or wait for your update to resolve the problem?
Exactly @AlissonRA
good afternoon
I am having a problem when trying to cancel a request for aws with the onDownloadProgress () event instantiated!
the error returned in the console is as follows:
Uncaught (in promise) DOMException: The user aborted a request.
Now if I remove the code part:
No error is returned on the console. can anybody help me? because I need onDownloadProgress but with the error breaking the code I can't make the necessary finalizations.