Skip to content
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

Curl error 7 Connection refused on non standard ports #2154

Closed
maximl337 opened this issue Sep 28, 2018 · 4 comments
Closed

Curl error 7 Connection refused on non standard ports #2154

maximl337 opened this issue Sep 28, 2018 · 4 comments
Labels
lifecycle/stale No activity for a long time

Comments

@maximl337
Copy link

Q A
Bug? yes
New Feature? no
Version 6.3

Actual Behavior

What is the actual behavior?
When I try to make a request to a resource with a non standard port I get the following error:
cURL error 7: Failed to connect to service-stub port 3000: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Expected Behavior

What is the behavior you expect?
Should complete request without throwing an error

Steps to Reproduce

What are the steps to reproduce this bug? Please add code examples,
screenshots or links to GitHub repositories that reproduce the problem.
cURL error 7: Failed to connect to service-stub port 3000: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
$resp = $this->client->get('localhost:3000');

Possible Solutions

If you have already ideas how to solve the issue, add them here.
(remove this section if not needed)

@cpass78
Copy link

cpass78 commented Oct 3, 2018

@maximl337 use Request instead

@maximl337
Copy link
Author

@maximl337 use Request instead

@cpass78 You mean like this:

$res = $client->request('GET', '/redirect/3', ['allow_redirects' => false]);

@stale
Copy link

stale bot commented Sep 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale No activity for a long time label Sep 25, 2020
@stale stale bot closed this as completed Oct 9, 2020
@marvingitau
Copy link

I to have a similar issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale No activity for a long time
Projects
None yet
Development

No branches or pull requests

3 participants