FoxForGate
Encoding a bit off on createError?
sim como eu disse, voce pode alterar a informação, porem ela tem como objetivo ser um indicativo, um curto texto de uma ou duas palavras, não é correto utilizar ele para passar a informação que vai ser exibida para o usuário, para este objetivo pode se utilizar "data", ou "message"
38 replies
Encoding a bit off on createError?
because there are cases in which you create internal status codes, I have already worked with APIs of this type, for example, it can return an 809 code, however this does not exist in our official http response list, for this reason you would have to create a statusMessage for the same
38 replies
Encoding a bit off on createError?
The problem is that "statusMessage" is reserved for the message related to the error code, so for example, if you use the 401 code, the correct thing is for your statusMessage to be "Unauthorized", texts of the statusMessage type do not support accentuation, for this reason this problem is occurring, try using the statusMessage according to your codeStatus, or do not use accents in it
38 replies
Thread issue
try removing node_modules, .output and .nuxt
After this, install your dependencies again and try to run the project again, this error itself is very vague as it can occur in cases of syntax error or even in poor environment configuration
7 replies