Joshen Lim
dc23320e43
Add sentry capture exception to apiWrapper ( #47804 )
...
## Context
As per PR title - also adjusts the imports for files consuming
`apiWrapper` to remove the default export for `apiWrapper`
Have tested locally by throwing an error in one of the API routes -
verified that the event shows up on Sentry
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* API errors are now captured in Sentry before returning server error
responses, improving production visibility while keeping endpoint
behavior the same.
* **Tests**
* Added coverage to confirm rejected handler executions are reported to
Sentry and return the expected HTTP 500 JSON payload.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-10 16:28:42 +08:00
..
2026-07-09 17:09:03 +08:00
2026-07-10 16:28:42 +08:00
2026-07-06 17:38:03 +08:00
2026-07-06 19:34:20 +10:00
2026-06-30 23:11:53 +08:00
2026-03-19 11:43:02 +11:00
2026-04-07 20:34:10 -04:00
2025-07-03 12:41:11 +02:00
2026-04-27 17:42:34 +08:00
2025-10-22 08:57:49 -04:00
2026-04-07 20:34:10 -04:00
2023-11-15 12:38:55 +01:00
2026-07-08 14:52:59 +08:00
2026-04-07 20:34:10 -04:00
2026-05-06 14:52:36 +02:00
2026-05-06 14:52:36 +02:00
2026-03-23 21:20:47 +00:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-06-18 15:34:56 +08:00
2026-07-09 16:32:31 +02:00
2026-04-07 20:34:10 -04:00
2026-05-04 13:08:06 -04:00
2025-12-15 20:39:09 +01:00
2025-12-15 20:39:09 +01:00
2026-04-07 20:34:10 -04:00
2026-06-04 07:41:28 -06:00
2026-04-07 20:34:10 -04:00
2025-10-31 00:30:42 +08:00
2026-04-27 17:42:34 +08:00
2026-05-18 13:12:25 +00:00
2026-06-24 17:55:22 +08:00
2026-04-07 20:34:10 -04:00
2025-06-27 11:10:25 +02:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2026-04-07 20:34:10 -04:00
2025-08-14 21:23:08 +02:00
2026-05-04 07:08:35 -06:00
2026-04-06 13:52:53 +00:00
2026-04-08 16:54:31 +02:00
2026-04-08 16:54:31 +02:00
2026-04-07 20:34:10 -04:00
2024-07-17 13:27:00 +08:00
2026-02-11 09:50:11 +01:00
2026-04-07 20:34:10 -04:00
2026-06-25 11:08:26 -04:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2026-03-09 15:25:05 +07:00
2026-03-09 15:25:05 +07:00
2026-07-06 17:38:03 +08:00
2026-07-06 17:38:03 +08:00
2026-03-11 13:55:20 +01:00
2026-04-07 20:34:10 -04:00
2023-11-15 12:38:55 +01:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-05-13 14:57:08 -04:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-05-27 15:19:54 +08:00
2026-04-07 20:34:10 -04:00
2026-04-27 17:42:34 +08:00
2026-04-02 11:09:18 +11:00
2026-06-09 08:25:29 -06:00
2024-11-22 16:42:12 +08:00
2026-06-09 08:25:29 -06:00
2026-04-02 11:09:18 +11:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2026-05-04 13:08:06 -04:00
2026-06-24 17:55:22 +08:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2026-04-07 20:34:10 -04:00
2026-01-22 11:17:49 -05:00
2026-07-09 18:41:03 +08:00
2026-07-09 18:41:03 +08:00
2026-06-18 15:34:56 +08:00
2026-06-18 15:34:56 +08:00
2026-05-04 16:21:47 +08:00
2026-05-04 16:21:47 +08:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-04-27 17:42:34 +08:00
2026-05-13 14:57:08 -04:00
2026-07-02 11:47:13 +02:00
2026-07-02 11:47:13 +02:00
2026-04-07 20:34:10 -04:00
2026-03-30 10:58:37 +02:00
2026-05-13 14:57:08 -04:00
2026-04-07 20:34:10 -04:00
2026-04-27 17:42:34 +08:00
2026-02-11 09:50:11 +01:00
2023-11-15 12:38:55 +01:00