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

windows 7: servers die on first request to setup.local.a2p3.net #42

Closed
GregTurner opened this issue Feb 4, 2013 · 2 comments
Closed

Comments

@GregTurner
Copy link
Contributor

C:\Users\gturner\Documents\GitHub\a2p3>npm start

a2p3@0.0.1 start C:\Users\gturner\Documents\GitHub\a2p3
node app/app.js

Mon Feb 04 2013 11:37:03 GMT-0NaN (Pacific Standard Time)
A2P3 servers started on *.local.a2p3.net:8080
Setup available at http://setup.local.a2p3.net:8080

we are going to die from uncaught exception !
we received error:
TypeError: Invalid date
at TypeError (unknown source)
at C:\Users\gturner\Documents\GitHub\a2p3\node_modules\dateformat\lib\dateformat.js:69:13
at Function.exports.colorLogger.express.logger.token.wideHost [as localTime](C:UsersgturnerDocumentsGitHuba2p3
applibmiddleware.js:116:13)
at eval (eval at compile (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\connect\lib\middl
eware\logger.js:173:10))
at ServerResponse.module.exports.res.end (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\c
onnect\lib\middleware\logger.js:149:20)
at onend (stream.js:66:10)
at EventEmitter.emit (events.js:126:20)
at afterRead (fs.js:1330:12)
at Object.wrapper as oncomplete
we are going to die from exit !

C:\Users\gturner\Documents\GitHub\a2p3>

@dickhardt
Copy link
Owner

I guess you can't run on Windows! :) Looks like the dateformat module does not work on Windoze.

You can go into middleware.js and edit the logging code to not get the date data so that it will run on Windows. There is a line

change line 144 from

return express.logger( '\x1b[2m:localTime\x1b[0m|\x1b[2m:remoteIP\x1b[0m :wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage' )

to

return express.logger( \x1b[2m:remoteIP\x1b[0m :wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage' )

On Feb 4, 2013, at 11:39 AM, GregTurner notifications@github.com wrote:

C:\Users\gturner\Documents\GitHub\a2p3>npm start

a2p3@0.0.1 start C:\Users\gturner\Documents\GitHub\a2p3
node app/app.js

Mon Feb 04 2013 11:37:03 GMT-0NaN (Pacific Standard Time)
A2P3 servers started on *.local.a2p3.net:8080
Setup available at http://setup.local.a2p3.net:8080

we are going to die from uncaught exception !
we received error:
TypeError: Invalid date
at TypeError (unknown source)
at C:\Users\gturner\Documents\GitHub\a2p3\node_modules\dateformat\lib\dateformat.js:69:13
at Function.exports.colorLogger.express.logger.token.wideHost as localTime
at eval (eval at compile (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\connect\lib\middl
eware\logger.js:173:10))
at ServerResponse.module.exports.res.end (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\c
onnect\lib\middleware\logger.js:149:20)
at onend (stream.js:66:10)
at EventEmitter.emit (events.js:126:20)
at afterRead (fs.js:1330:12)
at Object.wrapper as oncomplete
we are going to die from exit !

C:\Users\gturner\Documents\GitHub\a2p3>


Reply to this email directly or view it on GitHub.

@GregTurner
Copy link
Contributor Author

that worked. thanks... working on Bank web app now.

On Mon, Feb 4, 2013 at 11:48 AM, Dick Hardt notifications@github.comwrote:

I guess you can't run on Windows! :) Looks like the dateformat module does
not work on Windoze.

You can go into middleware.js and edit the logging code to not get the
date data so that it will run on Windows. There is a line

change line 144 from

return express.logger( '\x1b[2m:localTime\x1b[0m|\x1b[2m:remoteIP\x1b[0m
:wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage'
)

to

return express.logger( \x1b[2m:remoteIP\x1b[0m
:wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage'
)

On Feb 4, 2013, at 11:39 AM, GregTurner notifications@github.com wrote:

C:\Users\gturner\Documents\GitHub\a2p3>npm start

a2p3@0.0.1 start C:\Users\gturner\Documents\GitHub\a2p3
node app/app.js

Mon Feb 04 2013 11:37:03 GMT-0NaN (Pacific Standard Time)
A2P3 servers started on *.local.a2p3.net:8080
Setup available at http://setup.local.a2p3.net:8080

we are going to die from uncaught exception !
we received error:
TypeError: Invalid date
at TypeError (unknown source)
at
C:\Users\gturner\Documents\GitHub\a2p3\node_modules\dateformat\lib\dateformat.js:69:13

at Function.exports.colorLogger.express.logger.token.wideHost as
localTime
at eval (eval at compile
(C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\connect\lib\middl

eware\logger.js:173:10))
at ServerResponse.module.exports.res.end
(C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\c
onnect\lib\middleware\logger.js:149:20)
at onend (stream.js:66:10)
at EventEmitter.emit (events.js:126:20)
at afterRead (fs.js:1330:12)
at Object.wrapper as oncomplete
we are going to die from exit !

C:\Users\gturner\Documents\GitHub\a2p3>


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-13095394.

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

No branches or pull requests

2 participants