You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while testing locally I edited my hosts file and provided a host name to the IP
XXX.XXX.XXX.XXX my-host-name.com
then made a request to http://my-host-name.com:40871 and successfully got a response.
I can not do this in production since we are using heroku to deploy our app
Code
Our app is a middleware to make requests to the 3rd party API since they requires a static IP in its whitelist. we create a axios instance and recieve further options in the request body.
The problem was I did not have an httpAgent so it was not using the proxy for http requests, which is why the API server was probably refusing connection. Since it has the static IP in its whitelist and not our server IP.
Describe the issue
I am trying to make a request to a 3rd party SOAP API, provided an IP address http://XXX.XXX.XXX.XXX:40871
I get the following error:
while testing locally I edited my
hosts
file and provided a host name to the IPthen made a request to
http://my-host-name.com:40871
and successfully got a response.I can not do this in production since we are using heroku to deploy our app
Code
Our app is a middleware to make requests to the 3rd party API since they requires a static IP in its whitelist. we create a axios instance and recieve further options in the request body.
here is the request body:
Expected behavior
it should work with IP addresses
Environment
The text was updated successfully, but these errors were encountered: