Connection refused.
hemanth opened this issue · comments
Hemanth HM commented
Yiyu He commented
try again? it choose a random port in https://github.com/koajs/kick-off-koa/blob/master/exercise.js#L80
Hemanth HM commented
@dead-horse noticed that and tried multiple times, it picked up ports like 7052
9459
so on...still the same error.
Yiyu He commented
it works fine in my computer. :(
can you update to kick-off-koa@0.0.2
? I've add some more exercises and more error info.
Hemanth HM commented
Will update soon, btw I was creating templates exercise on my fork ;)
Yiyu He commented
awesome
Hemanth HM commented
Now I notice:
$ kick-off-koa verify hello.js
The submission server will listen at port 6072
The solution server will listen at port 6073
✗ Error connecting to submission server(http://localhost:6072/hello), options: {"timeout":5000,"maxRedirects":10}. Error: connect ECONNREFUSED
at exports._errnoException (util.js:742:11)
at Object.afterConnect [as oncomplete] (net.js:989:19)
✗ Error connecting to solution server(http://localhost:6073/hello), options: {"timeout":5000,"maxRedirects":10}. Error: connect ECONNREFUSED
at exports._errnoException (util.js:742:11)
at Object.afterConnect [as oncomplete] (net.js:989:19)
6072
Yiyu He commented
{23:20}[]~/git/kick-off-koa:master ✓ ➭ kick-off-koa verify exercises/hello_koa/solution/solution.js
The submission server will listen at port 9953
The solution server will listen at port 9954
Your submission results compared to the expected:
────────────────────────────────────────────────────────────────────────────────
1. ACTUAL: "hello koa"
1. EXPECTED: "hello koa"
2. ACTUAL: ""
2. EXPECTED: ""
────────────────────────────────────────────────────────────────────────────────
✓ Submission results match expected
does other exercise have the same error?
Hemanth HM commented
@dead-horse This was the same code.
It works fine now.
Yiyu He commented
weird
Hemanth HM commented
Yup, pretty weird. BTW I had pinged you on G+ hangout ;)