Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error.statusText & error.statusMessage are undefined after Nuxt build but are set in dev #373

Open
XStarlink opened this issue Mar 8, 2024 · 0 comments

Comments

@XStarlink
Copy link

XStarlink commented Mar 8, 2024

Environment

Nuxt 3.10.3
Nitro 2.8.1

Reproduction

(I will try to make a reproduction soon)

Describe the bug

When I'm in dev with Nuxt 3, I can get error.statusText and error.statusMessage but after build they are undefined,

However, I can see my status message in the network section of Chrome.

I'm trying to get in client a nitro error like this:

throw createError({
  statusCode: 403,
  statusMessage: 'Forbiden',
  data: { code: 'subscription_required' }
})

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant