FoxForGate
Docker nuxt $fetch and useFetch
Hello, how are you?, to help organize multiple APIs I created a module, see if it solves your problem
https://www.npmjs.com/package/nuxt-http-preset
11 replies
Error in the NuxtPDF module
this was the only way to use it, I believe there is some part of the code that when using "exportToPDF" tries to manipulate something on the client, without checking whether the process is occurring on the client side
15 replies
Error in the NuxtPDF module
I took a better look at the error and looked in the module files to see how it works, the problem is that it works with "jspdf" which does not support the use of SSR, which caused it to try to manipulate information that is part of of the client, in this case the HTMLElement.
To resolve this error, I created an isolated component to work only with my PDF and the html related to it
and when using it I placed it inside a "ClientOnly" thus resolving the error in question
15 replies
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