Comments (15)
kick-off-koa run program.js
is ok, but kick-off-koa verify program.js
error?
seems the same issue with #2 ,but i dunno how could this happened. :(
@hemanth has any idea?
from kick-off-koa.
its 100% reproducible
from kick-off-koa.
can you change line 110 in $kick-off-koa/exercise.js
, https://github.com/koajs/kick-off-koa/blob/master/exercise.js#L110
make the setTimeout
interval to 1000 or some bigger number?
from kick-off-koa.
I updated to 1000
The submission server will listen at port 1061
The solution server will listen at port 1062
β Error connecting to solution server(http://localhost:1062/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)
from kick-off-koa.
Instead of selecting random ports, we must pick up available free ports.
On Jul 28, 2014 4:19 PM, "Ian Crowther" [email protected] wrote:
I updated to 1000
The submission server will listen at port 1061
The solution server will listen at port 1062
β Error connecting to solution server(http://localhost:1062/hello), options: {"timeout":5000,"maxRedirects":10}. Error: connect ECONNREFUSED
at exports._errnoException (util.js:742:11)
at Object.afterConnect as oncompleteβ
Reply to this email directly or view it on GitHub
#5 (comment).
from kick-off-koa.
it's not work in my computer, both run
and verify
. The error info is just like the description above.
I have also tried to change the timeout, and also tried @iancrowther 's patch, the error occur as the same.
My env:
node v0.11.13 with nvm
Mac OSX 10.9.4
kick-off-koa v1.0.3
from kick-off-koa.
i updated the patch, please try again.
from kick-off-koa.
@lisposter try [email protected]
from kick-off-koa.
I get the same error here when verifying.
Updating to 1.0.4 didn't change anything.
from kick-off-koa.
@jguyon can you add some console.log
in your program.js
to see if the server is running or not?
from kick-off-koa.
@dead-horse The submission server seems to be running fine, it's the solution server that seems to have a problem.
The following program:
var koa = require('koa');
var app = koa();
var port = process.argv[2];
app.use(function *() {
if (this.path === '/hello' && this.method === 'GET') {
this.body = 'hello koa';
}
});
app.listen(port, function () {
console.log('Server listening at port ' + port);
});
produces the following output:
The submission server will listen at port 38208
The solution server will listen at port 47688
Server listening at port 38208
β Error connecting to solution server(http://localhost:47688/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)
from kick-off-koa.
@dead-horse v1.0.4 still not work :(
the program is work perfect in browser by running it using node --harmony directly.
from kick-off-koa.
hey everyone. please check out v1.1.0
from kick-off-koa.
@dead-horse Works like a charm. Thanks ;)
from kick-off-koa.
π May the ports be with you! :D
On Sun, Aug 17, 2014 at 7:26 PM, JΓ©rΓ΄me Guyon [email protected]
wrote:
@dead-horse https://github.com/dead-horse Works like a charm. Thanks ;)
β
Reply to this email directly or view it on GitHub
#5 (comment).
'I am what I am because of who we all are'
h3manth.com http://www.h3manth.com
*-- Hemanth HM *
from kick-off-koa.
Related Issues (20)
- Error: connect ECONNREFUSED HOT 2
- discussion: background information HOT 3
- error message about promise && connection HOT 2
- content headers remark HOT 1
- routing exercise question HOT 1
- run exercise error HOT 3
- what does these two wavy lines means in cookies chapter? HOT 1
- i18n-cn
- Navigating to `Choose Language` and then choosing an exercise crashes HOT 3
- cookies exercise hint/apis list improvements
- Whtat's the problem with my environment?
- Task of error handler with Koa 2 cannot pass HOT 3
- Can't verify first exercise HOT 2
- error occurs when selecting `CHOOSE LANGUAGE` again. HOT 1
- readme typo HOT 1
- Feature request: Windows installer for kick-off-koa HOT 1
- not correct verify
- Error connecting to submission server, lesson 2 routing. HOT 2
- background isn't cleared?
- Update to support Koa 3 version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kick-off-koa.