dan1234
dan1234
NNuxt
Created by dan1234 on 3/21/2025 in #❓・help
useFetch error payload is missing fields.
I have an expressjs backend api route returning error like res.stats(500).json({message: 'Unable to locate resource', redirectUrl: 'http://google.com'}) in NUXT3 page, I call this api as const { data: response, error } = await useFetch<any>('/api/v2/validate/', { method: 'POST', body: { code: code }, }); The error.value.data contains message field but not redirectUrl. What could be the reason for that?
5 replies
NNuxt
Created by dan1234 on 3/21/2025 in #❓・help
NUXT server page navigateTo redirect
No description
5 replies