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
Error connecting to the hook handler. Is the handler running? #3
Comments
When you say "running on travis" do you mean your project that is using dredd to test your web service or are you talking about my repository running on travis? Please post your travis.yml if its your project. I think I can tell what the issue is from that output but I just want to verify. Edit: Added information |
My project running on travis using dredd.
and dredd.yml
|
Can you try to run dredd without using the dredd.yml?? Only reason I ask is because on the Dredd website it specifically says Read the docs where I got the picture here. Maybe @netmilk can comment on your dredd.yml file. Does this work locally? When I run dredd I use the following command since I figured it would be a bad idea to use the dredd.yml. dredd ./laravel.apib http://localhost:8001 --server "php -S 0.0.0.0:8001 -t public/" --language vendor/bin/dredd-hooks-php --hookfiles tests/dredd/hooks/hookfile.php |
This appears to be an issue with dredd. I added It fails for another reason, connecting to the app/server |
Hey @icambridge, @ddelnano,
Ad your issue, @icambridge: Dredd is waiting 1 second after spawning the hook worker to connect to it. In this case I would suspect something in your hook files is taking longer time than this 1 second. Is it possible? This interval is unfortunately not configurable at this moment. I added it to the requirements for refactoring of worker client in Dredd here: apiaryio/dredd#235 |
@icambridge Is you project open-source or would you be willing to share the code of the project with me? I'm super interested to know more how you use hooks and Dredd and to know more how do you organise code in hooks and what roadblocks did you hit while using Dredd. It would be super useful to know more. Please, feel free to reach out to me via twitter @ntmlk, skype netmilk or email adam@apiary.io. Looking forward to hear from you! |
I get the following on travis.
I have no idea why, I've ensured that the file is there and executable. So I've ran the script by itself and put it into the background. This just resulted in getting socket errors when the other tests were running.
The text was updated successfully, but these errors were encountered: