Post man stuck at sending request for post method login and jwt token!


Postman stucking at sending request when request with post method for login and jwt token. Can anyone please guide me.

Below are my code that I am testing.

Hi @MegaMoris

I see at the bottom of your screenshot you get a ‘ECONNRESET’ error. This link may help;

1 Like

That error is just because I stop server for a moment and test again.
The connection is okay. Thanks for help.

I found the solution. The problem seems to be with token = jwt.sign from line 33.
I changed it to this and it works now and return token.
Screenshot (35)

1 Like