vanshaj2023 opened a new issue, #3343:
URL: https://github.com/apache/apisix-dashboard/issues/3343
### Issue description
When a delete operation fails (network error, 403, 500, etc.), the user gets
no feedback at all, no error toast, no message, nothing. The confirmation modal
just closes and the resource remains, but the user has no way of knowing the
deletion failed.
**Root cause**
The promise chain in `DeleteResourceBtn.tsx` has no `.catch()`:
```ts
onConfirm: () =>
req
.delete(api)
.then((res) => Promise.resolve(onSuccess?.(res)))
.then(() => {
notifications.show({ message: t('info.delete.success'), color: 'green'
});
queryClient.invalidateQueries();
})
// no .catch() — errors are silently swallowed
```
### Expected behavior
An error notification should be shown when the delete request fails, so the
user knows the operation did not succeed.
### How to Reproduce
1. Disconnect network or simulate a 500 response on a DELETE endpoint
2. Go to any list page (Routes, Services, Upstreams, etc.)
3. Click Delete on any resource and confirm
4. No error notification appears, the UI behaves as if nothing happened
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`):
- apisix-dashboard version, if have:
- Browser version, if have:
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]