JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 18 forks source link

Server side error handling bug #56

Closed Me-Phew closed 1 year ago

Me-Phew commented 1 year ago

There seems to be some kind of an issue with handling server side errors. Instead of redirecting to the default Nuxt error page (or a custom one if it is available) a JSON data of the error is rendered. Normally this is only expected to happen when the page is requested with Accept: application/json header as per Nuxt docs.

Here is a reproduction

And here is an example of expected behaviour

JulianMar commented 1 year ago

Hey, seems like this issue was introduced with nuxt 3.6.x. I will check tomorrow with which exact version the issue appeared and will try to fix it. Thanks for using the library!

Me-Phew commented 1 year ago

Alright, thanks!

Me-Phew commented 1 year ago

Hi, any progress on this? Maybe you need some help?

JulianMar commented 1 year ago

Hey, yeah should be fixed on the main branch. I will release it tomorrow.

I couldnt fix it to keep the same functionality but it will probably added in the future. Right now nuxt does not support handling errors in the h3 server and keeping the same functionality of the error page.

Me-Phew commented 1 year ago

That's great, thanks.

JulianMar commented 1 year ago

fixed in v7.0.0. Pls reopen if it's still happening :)