0

I'm using http-proxy-middleware to proxy some requests. I can proxy correct some APIs but I'm getting 504 in one of them.

enter image description here

I believe this has something to do with the network (corp laptop).

I've run all of these commands to make sure it's all set corretly. My password has the character . (the dot). I don't think it has anything to do with it.. but we never now. I've also tried the base64 just in case but got the same result.

npm config set registry http://registry.npmjs.org/
npm config set http-proxy http://username:password@ip:port
npm config set https-proxy http://username:password@ip:port
npm config set proxy http://username:password@ip:port
npm set strict-ssl false

I'm getting this in the console:

[HPM] Error occurred while proxying request localhost:3000/produXXXXXXXXXXXX to https://XXXXXXXX [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)

Just replaced with XXXX because it's a corp url. It works perfectly from postman with the same proxy server auth. Any advice? Thanks!

leonSantoz
  • 11
  • 3

0 Answers0