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

Can't Start #30

Open
ghost opened this issue Jul 5, 2013 · 5 comments
Open

Can't Start #30

ghost opened this issue Jul 5, 2013 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2013

Keep getting this error

Cloud9 Error: you may be using the wrong PORT & HOST for your server app
Node: use 'process.env.PORT' as the port and 'process.env.IP' as the host in your scripts. See also https://c9.io/site/blog/2013/05/can-i-use-cloud9-to-do-x/
Error: listen EACCES
at errnoException (net.js:769:11)
at Server._listen2 (net.js:892:19)
at listen (net.js:936:10)
at Server.listen (net.js:993:9)
at dns.js:71:18
at process.startup.processNextTick.process._tickCallback (node.js:244:9)

@samuri51
Copy link
Owner

samuri51 commented Jul 5, 2013

try setting line 184 to this, an of course delete the bot.listen that's already there. if you go here: https://github.com/samuri51/chillybot/blob/master/chillybot.js and look at the line numbers you'll see what i mean.

bot.listen(process.env.PORT, process.env.IP); //needed if running on a server

if that doesn't work i know appfog.com works with the script as - is. sorry never tried to upload to cloud 9 before

@samuri51
Copy link
Owner

samuri51 commented Jul 5, 2013

and make sure it runs on your computer first. the instruction page tells how to do that. let me know if this worked for you...

@ghost
Copy link
Author

ghost commented Jul 6, 2013

It worked..then it didn't...it said that it lost connection with turntable.fm...then comes back

@ghost
Copy link
Author

ghost commented Jul 6, 2013

I tried it on node.js....said that the there was an error saying that it won't join room due to Type Error: Cannot properly read "name" of undefined

@samuri51
Copy link
Owner

samuri51 commented Jul 6, 2013

  1. as far as it losing connection, did you lose connection? or are you running the bot in two locations at once? if so then they'll battle to try and stay online by continuously disconnecting each other.
  2. that type error is a common problem, make sure auth, userid, and roomid are correct and have no spaces. also of course make sure that your account that your trying to login with is not banned.

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

1 participant