You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using Nuxt 3.6.5, I've searched everywhere but I can't find a way to detect server side if the request is aborted or destroyed or canceled by the user.
Currently, when I launch a request (which performs long processing) and click on a button that triggers an AbortControler, the front end stops receiving the stream and terminates the request, but my server doesn't detect the request abort and continues processing until the end.
I'd like to be able to detect the cancellation of the request on the server side and cleanly kill the processing that's being done.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm using Nuxt 3.6.5, I've searched everywhere but I can't find a way to detect server side if the request is aborted or destroyed or canceled by the user.
Currently, when I launch a request (which performs long processing) and click on a button that triggers an AbortControler, the front end stops receiving the stream and terminates the request, but my server doesn't detect the request abort and continues processing until the end.
I'd like to be able to detect the cancellation of the request on the server side and cleanly kill the processing that's being done.
I've tried many things in server like:
I did a lot of tests but nothing worked, If anyone can give me some advice, that would be really great.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions