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

vwf-apps #537

Open
lazydino opened this issue Feb 28, 2017 · 6 comments
Open

vwf-apps #537

lazydino opened this issue Feb 28, 2017 · 6 comments

Comments

@lazydino
Copy link

I can't seem to get some of the examples at https://github.com/virtual-world-framework/vwf-apps.git running. One particular sample is 'mulituser'. This is what I got from the console:

C:\vwf>node . -a ..\vwf-apps
LogLevel = 1
Serving VWF support files from C:\vwf
Serving VWF applications from ..\vwf-apps
Serving on port 3000
events.js:141
throw er; // Unhandled 'error' event
^

Error: write after end
at ServerResponse.OutgoingMessage.write (_http_outgoing.js:413:15)
at Object._404 (C:\vwf\lib\nodejs\serve.js:41:18)
at Object.Serve (C:\vwf\lib\nodejs\vwf.js:143:15)
at Server.OnRequest (C:\vwf\node_vwf.js:106:17)
at Manager.handleRequest (C:\vwf\node_modules\socket.io\lib\manager.js:565:28)
at Server. (C:\vwf\node_modules\socket.io\lib\manager.js:119:10)
at emitTwo (events.js:87:13)
at Server.emit (events.js:172:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:528:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)


vwf and vwf-apps are cloned into my c:\vwf and c:\vwf-apps respectively. Any idea?

@scottnc27603
Copy link
Member

scottnc27603 commented Feb 28, 2017 via email

@lazydino
Copy link
Author

lazydino commented Feb 28, 2017

Thanks! so the applicationPath link will not work for every app, I need to copy the repos to the public subfolder of vwf?

@scottnc27603
Copy link
Member

scottnc27603 commented Mar 1, 2017 via email

@eric79
Copy link
Member

eric79 commented Mar 1, 2017

Hmm ... yeah the -a command line argument that @lazydino is using should be correct. I wonder if it's having issues for some reason because the apps are not in a subfolder of c:\vwf.

@lazydino, could you try moving it under c:\vwf somewhere and see if it works there? My only other idea is that somewhere in the server, it doesn't like the Windows-style \ and is treating it as an escape character. You could try making it a / and see if your results are any different.

@lazydino
Copy link
Author

lazydino commented Mar 1, 2017

It is not a 'slash vs back slash' issue. I've tried '-a' on both linux and windows, the result is the same. Making vwf-apps located under vwf doesn't work for multiuser app either.

Chaning application path via '-a' works for most of the applications like duck and humvee, but multiuser and plane won't be served under directory other than 'public'. Looks like something go wrong in one of the vwf components referenced....

@eric79
Copy link
Member

eric79 commented Mar 2, 2017

Ah, interesting ... I wonder if those apps assume a particular relative path to a component. I guess the answer for now is that those apps do indeed need to be served from public.

Thanks for finding that.

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

3 participants