-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lack of NO_PROXY support with move to needle #351
Comments
This is great, thanks for the report and for the PR assistance in the Needle repository. I thought we had a workaround for this, but it seems that is not the case. We'll leave this open and upgrade needle when it is published. |
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-790). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps. |
…edle fix: upgrade to latest needle to support no_proxy. Fixes #351
Software versions
Please provide at least OS and version of pact-js
Mac OSX 11.6.1
v10.14.0
v12.22.1
Issue Checklist
Please confirm the following:
Root Cause
I want to be clear this is a problem introduced with a pact update when moving from request to needle but the root cause is a Needle issue not respecting
NO_PROXY
. This causes Pact to fail as we run it behind a corporate proxy. This worked as expected prior to the move to needle.Expected behaviour
As a user behind a corporate proxy Pact should be able to make a successful network request to the mock service it spins up while respecting
HTTP_PROXY
andNO_PROXY
environment variables (note it was working as expected with these older versions of pact & pact-node)Actual behaviour
Since move from request to needle connection to mock server fails on machines behind a corporate proxy despite setting
NO_PROXY
for localhost/127.0.0.1 (something the request library previously respected). In my use case needle's http request is intercepted and redirected by our corporate proxy causing it never to connect to the pact mock server thus causing pact contract tests to fail/not run.Steps to reproduce
This happens when running any consumer test, specifically initiated during the call to
@pact-foundation/pact
'ssetup
function when attempting to start the mock server.The text was updated successfully, but these errors were encountered: