Answer the question
In order to leave comments, you need to log in
Why do all my back requests work but give an error?
I'm doing a project on angular and nest js, at the moment I'm busy with registration and authorization and generally work with users. I wrote a controller that processes my requests and sends a response via @Res(), the response to the request comes and the status code too, but as an error
I understand that the point is how I send the response, something with json, but I don’t understand what the problem is
. Just in case, I’ll attach pieces of code
registration component (angular)
auth service (angular)
users service (nest)
users controller (nest)
Answer the question
In order to leave comments, you need to log in
Well, the problem was just that I was sending the status, but I just had to write .status(...).send({})
English in black says that there is a problem with json, and you show us pictures here))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question