Giter VIP home page Giter VIP logo

Comments (15)

dead-horse avatar dead-horse commented on September 2, 2024

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.

iancrowther avatar iancrowther commented on September 2, 2024

its 100% reproducible

from kick-off-koa.

dead-horse avatar dead-horse commented on September 2, 2024

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.

iancrowther avatar iancrowther commented on September 2, 2024

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.

hemanth avatar hemanth commented on September 2, 2024

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.

lisposter avatar lisposter commented on September 2, 2024

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.

iancrowther avatar iancrowther commented on September 2, 2024

i updated the patch, please try again.

from kick-off-koa.

dead-horse avatar dead-horse commented on September 2, 2024

@lisposter try [email protected]

from kick-off-koa.

jguyon avatar jguyon commented on September 2, 2024

I get the same error here when verifying.
Updating to 1.0.4 didn't change anything.

from kick-off-koa.

dead-horse avatar dead-horse commented on September 2, 2024

@jguyon can you add some console.log in your program.js to see if the server is running or not?

from kick-off-koa.

jguyon avatar jguyon commented on September 2, 2024

@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.

lisposter avatar lisposter commented on September 2, 2024

@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.

dead-horse avatar dead-horse commented on September 2, 2024

hey everyone. please check out v1.1.0

from kick-off-koa.

jguyon avatar jguyon commented on September 2, 2024

@dead-horse Works like a charm. Thanks ;)

from kick-off-koa.

hemanth avatar hemanth commented on September 2, 2024

πŸ‘ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.