supertest icon indicating copy to clipboard operation
supertest copied to clipboard

My superagent call fails with a TypeError: _superagent.default.catch() is not a function

Open chakradhari opened this issue 4 years ago • 0 comments

I am making a post request using superagent. It fails with following error.

TypeError: _superagent.default.post(...).auth(...).set(...).send(...).then(...).catch is not a function

I am working on a corporate machine.

But strange thing is same api calls works absolutely fine in "VM's". I don't see above error.

But it fails in local machine with error mentioned above.

Both in VM and local I am at same branch and same commit.

But it only fails in local machine and absolutely works fine in VM's

superagent: ^5.3.1

chakradhari avatar Dec 21 '20 04:12 chakradhari