Node-red-contrib-oauth2 (node) giving ERR ECONNRESET

I am using node-red-contrib-oauth2 library to fetch the token, but it is throwing ERR ECONNRESET error. Any help here.