We changed the Nextjs request handler to improve how it handles errors from Django... but I probably broke all the existing code that handles errors :)
[ ] Check that things like archiving a scan report / dataset still error correctly. Fixes in the archiving methods, remove the JSON code.
[ ] Errors toasts do not work in deployment - looks like server actions catch them or something. We need to explore how to make them work.
We changed the Nextjs request handler to improve how it handles errors from Django... but I probably broke all the existing code that handles errors :)