FoxForGate
FoxForGate
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
I've never had this kind of problem, but I'll try to help
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
thanks
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
the image you sent previously only has the statusMessage, can you send it showing the message so we can see the erro
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
ahhh agora sim entendi
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
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
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
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
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
yes, you can return "data", this being a parameter accepted by createError(), and in it you can pass an object with information, such as the error message in Portuguese
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
If I'm not mistaken, you can just pass "status Code" and it will automatically set the statusMessage according to
38 replies
NNuxt
Created by Medim on 5/7/2024 in #❓・help
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
NNuxt
Created by Medim on 5/7/2024 in #❓・help
Encoding a bit off on createError?
olha um BR aqui, vou lhe enviar a mensagem em ingles para a galera poder entender tmb kkk
38 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
Thread issue
check your tailwindcss files, see if there are any errors in your configuration files, if not, try removing tailwindcss and installing it again
7 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
Thread issue
Are you using Nuxt UI?
7 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
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
NNuxt
Created by $hins on 5/5/2024 in #❓・help
weird behaviour when expanding component
your problem is with css, I don't know exactly how to fix this, probably manipulating the display can fix this
5 replies
NNuxt
Created by MrBobDaisy on 5/2/2024 in #❓・help
Use external ApiS in Nuxt?
I believe that this is really the correct way to do it, regarding protection you can still use some layers of security in the nuxt backend, the advantage is that your api itself will never be exposed
13 replies
NNuxt
Created by MrBobDaisy on 5/2/2024 in #❓・help
Use external ApiS in Nuxt?
I'm very grateful, if you need any more help I'm here
13 replies
NNuxt
Created by MrBobDaisy on 5/2/2024 in #❓・help
Use external ApiS in Nuxt?
Did this solve your problem?
13 replies
NNuxt
Created by MrBobDaisy on 5/2/2024 in #❓・help
Use external ApiS in Nuxt?
I personally trade the token openly, what guarantees the security of my system is the API itself, I think another way would be to create a key based on the time similar to Key authentication
13 replies
NNuxt
Created by MrBobDaisy on 5/2/2024 in #❓・help
Use external ApiS in Nuxt?
The problem is that it will be necessary to put the key in the request package, you can try to hide it but it wouldn't be 100% protected, I think using the backend as a bridge is the best way
13 replies