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 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (GuzzleHttp\Exception\ConnectException) #56

Closed
g0ld3lux opened this issue Sep 15, 2016 · 4 comments

Comments

@g0ld3lux
Copy link

I tried Installing it on Laravel 5.3
here is my composer.json file

"require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.3.*",
        "guzzlehttp/guzzle": "^6.2"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.0",
        "symfony/css-selector": "3.1.*",
        "symfony/dom-crawler": "3.1.*",
        "barryvdh/laravel-ide-helper": "^2.2",
        "behat/behat": "^3.1",
        "behat/mink": "^1.7",
        "behat/mink-extension": "^2.2",
        "laracasts/behat-laravel-extension": "^1.0",
        "doctrine/dbal": "^2.5"
    },

And Im Just Testing Mail Trap

public function whenTheReportIsDoneTheUserWillGetAnEmailToLetThemKnowItIsDone()
    {
        $lastEmail = $this->fetchInbox()[0];
    }

and It Always Throw me this error

 cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (GuzzleHttp\Exception\ConnectException)

Can Anyone Tag me the Real Fix for this ? So I can just have it merge on my End...
Thanks

@kscheirer
Copy link

the error is "could not resolve host" - do you have a base_url setting in behat.yml?

@alnutile
Copy link
Contributor

alnutile commented Oct 1, 2016

darn 17 days @g0ld3lux sorry for the delay.

Did you have all your settings for mailtrap? From the looks of it you might be missing that. If you do not get the error without that fetchInbox then I would assume it is related to a setting there.
The docs https://github.com/laracasts/Behat-Laravel-Extension#service-mailtrap

@smarques
Copy link

smarques commented Oct 4, 2016

I have the same problem. See
#39

This pull request fixes the problem.

@alnutile
Copy link
Contributor

I think #51 just fixed this
Reopen if not thanks and sorry for delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants