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
I'm using mande to send a post request to a server. Sometimes the server returns a 403 response, so I expect the .post() method to throw an exception, however it doesn't.
Client side code:
try{constrenew=mande(SERVER_URL+'/api/v1/token/renew');constres=awaitrenew.post<ApiRes<'/token/renew','POST'>>();token=res.token;id=res.id;expires=res.expires;}catch(error){console.error('Failed to renew token:',error);logout();return;}
However the catch block never runs, I get this error in the browser console
I'm using
mande
to send a post request to a server. Sometimes the server returns a 403 response, so I expect the.post()
method to throw an exception, however it doesn't.Client side code:
However the catch block never runs, I get this error in the browser console
Using Firefox 125.0.3 on macOS.
The text was updated successfully, but these errors were encountered: