Skip to content
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

i have a request when i abort this request will be a error "signal is aborted without reason" #418

Open
ChinDer opened this issue Jul 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ChinDer
Copy link

ChinDer commented Jul 24, 2024

Environment

ofetch@^1.3.4:
version "1.3.4"

nuxt@3.8.2:
version "3.8.2"

Reproduction

signal is new AbortController().signal

$fetch(url, {
...params,
key,
baseURL: VITE_API_URL,
signal,
onRequest(context: any) {
// doing something
},
onResponse(res: any) {
const { error, response } = res
// doing something
return response._data
},
onError(e: any) {
console.log(e)
},
})

Describe the bug

even though I cancelled the request, the return value is still there.

Additional context

No response

Logs

No response

@ChinDer ChinDer added the bug Something isn't working label Jul 24, 2024
@tomchandra
Copy link

same issue here

@lcandy2
Copy link

lcandy2 commented Sep 12, 2024

same as signal is defined.

@alexchexes
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants