Server actions can’t be aborted
Unanswered
Broad-snouted Caiman posted this in #help-forum
Broad-snouted CaimanOP
Hi, I m struggling to fulfill one requirement which is after login I call rest API`s so on if I get an error in the response which is session expire then it should logout directly but in my case every single api calling one by one. Hence all I have written code goes into await even if I executed on api call and resolve promise but the code after promise does not get executed due to existing api call from another provider page. I couldn’t stop those is there any way to prevent like abort the server actions ?
6 Replies
@Broad-snouted Caiman Hi, I m struggling to fulfill one requirement which is after login I call rest API`s so on if I get an error in the response which is session expire then it should logout directly but in my case every single api calling one by one. Hence all I have written code goes into await even if I executed on api call and resolve promise but the code after promise does not get executed due to existing api call from another provider page. I couldn’t stop those is there any way to prevent like abort the server actions ?
Broad-snouted CaimanOP
Can u please reply it on my thread so that I can fix the major issue in my project. 

@Oriental
Pls don’t ping mods for code help
Broad-snouted CaimanOP
Oh ok
But is there any way I’m seeking for the help….
Broad-snouted CaimanOP
No action is taken to my thread please help me to achieve this.