Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
ankorite
@ankorite
2014-09-03T05:55:01.178112+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=test-bot-ada.herokuapp.com request_id=666681c7-00bc-4a71-b124-fac2ca75b3c5 fwd="71.35.7.220" dyno=web.1 connect=1ms service=2ms status=404 bytes=631
2014-09-03T05:55:14.401833+00:00 heroku[router]: at=info method=GET path="/styles/main.css" host=test-bot-ada.herokuapp.com request_id=e26f0e1c-a5d7-4eb4-92d4-d93fea37d1a2 fwd="71.35.7.220" dyno=web.1 connect=2ms service=2ms status=404 bytes=917
2014-09-03T05:55:14.388359+00:00 heroku[router]: at=info method=GET path="/styles/normalize.css" host=test-bot-ada.herokuapp.com request_id=6d466e8e-c0b7-40f3-a82e-8f059e89d3f2 fwd="71.35.7.220" dyno=web.1 connect=0ms service=2ms status=404 bytes=922
Kevin Lanni
@therealklanni
Seems the CSS and stuff are not being loaded:
Failed to load resource: the server responded with a status of 404 (Not Found) http://test-bot-ada.herokuapp.com/styles/normalize.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://test-bot-ada.herokuapp.com/styles/main.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://test-bot-ada.herokuapp.com/scripts/jquery.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://test-bot-ada.herokuapp.com/styles/normalize.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://test-bot-ada.herokuapp.com/styles/main.css
I was able to auth through G+, but it breaks after that because jquery isn't loading
Do you have EXPRESS_STATIC environment variable set?
ankorite
@ankorite
nope
Kevin Lanni
@therealklanni
Updated README
Let me know how that works for Heroku, so I can make the instructions easier to follow
I mean I know the command, but I don't know what the file path would be for Heroku
I should really set up a hubot instance on Heroku so I can get familiar with it :P
ankorite
@ankorite
I dont know the path either lol
Kevin Lanni
@therealklanni
Shit.
ankorite
@ankorite
im running a bash terminal inside heroku right now so i should find it shortly
Kevin Lanni
@therealklanni
Ah, sweet
Kevin Lanni
@therealklanni
Any luck?
ankorite
@ankorite
not as of yet. I am having trouble with the heroku run bash command connecting
Kevin Lanni
@therealklanni
Here's something else you could try:
Add this line to join-request.coffee (just after the "exports" line)
robot.respond /debug modules path/, (msg) ->
  msg.reply path.resolve __dirname
then say "hubot debug modules path"
ankorite
@ankorite
the path is /app/node_modules/hubot-slack-invite-request/src/ but it is not working as a config
and nether does /app/node_modules/hubot-slack-invite-request/src/public
Kevin Lanni
@therealklanni
The fuck
Which method did you use to get that path?
ankorite
@ankorite
I found it in the debug logs
2014-09-03T07:27:01.746185+00:00 app[web.1]: [Wed Sep 03 2014 07:27:01 GMT+0000 (UTC)] DEBUG Loading external-scripts from npm packages
2014-09-03T07:27:01.886164+00:00 app[web.1]: [Wed Sep 03 2014 07:27:01 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-factoids/src/factoids-core.coffee
2014-09-03T07:27:02.038054+00:00 app[web.1]: [Wed Sep 03 2014 07:27:02 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-plusplus/src/plusplus.coffee
2014-09-03T07:27:02.043950+00:00 app[web.1]: [Wed Sep 03 2014 07:27:02 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-fliptable/src/fliptable.coffee
2014-09-03T07:27:02.157057+00:00 app[web.1]: [Wed Sep 03 2014 07:27:02 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-slack-invite-request/src/join-request.coffee
2014-09-03T07:27:02.160119+00:00 app[web.1]: [Wed Sep 03 2014 07:27:02 GMT+0000 (UTC)] DEBUG Successfully connected to Redis
2014-09-03T07:27:02.166201+00:00 app[web.1]: [Wed Sep 03 2014 07:27:02 GMT+0000 (UTC)] INFO /app/node_modules/hubot-plusplus/src/scorekeeper.coffee is using deprecated documentation syntax
Kevin Lanni
@therealklanni
Try a relative path like ./node_modules/hubot-slack-invite-request/src/public
ankorite
@ankorite
nope
ankorite
@ankorite
I am about to call it a night. I have a feeling heroku is not a good platform for this script lol
Kevin Lanni
@therealklanni
There's got to be a way. Heroku is used to serve express web apps regularly (hubot is using express), so it must work somehow.
I'll have to set up a Heroku to play around with.
ankorite
@ankorite
https://github.com/ankorite/hubot-ada here is my code for the bot I am running
Kevin Lanni
@therealklanni
@ankorite did you try ../node_modules/hubot-slack-invite-request/src/public?
ankorite
@ankorite
same result
2014-09-04T04:02:38.204318+00:00 heroku[router]: at=info method=GET path="/styles/normalize.css" host=test-bot-ada.herokuapp.com request_id=d425f66c-d7f7-40a5-944c-77901e29b1d4 fwd="209.112.223.161" dyno=web.1 connect=0ms service=9ms status=404 bytes=1170
2014-09-04T04:02:38.439695+00:00 heroku[router]: at=info method=GET path="/styles/main.css" host=test-bot-ada.herokuapp.com request_id=59baf1ba-6116-43e9-91ac-2dc648b58f86 fwd="209.112.223.161" dyno=web.1 connect=1ms service=5ms status=404 bytes=1165
2014-09-04T04:02:38.453520+00:00 heroku[router]: at=info method=GET path="/scripts/jquery.js" host=test-bot-ada.herokuapp.com request_id=f813de99-5307-4d20-9d1a-134d9855ce66 fwd="209.112.223.161" dyno=web.1 connect=2ms service=4ms status=404 bytes=1152
Kevin Lanni
@therealklanni
I set up a Heroku, but you'll have to tell me how you got yours working. I just get 404 on everything, and I don't know how to see the logs.
ankorite
@ankorite
heroku logs from the head directory
heroku config shows the variables
heroku config:set variable_name=value to set them
did you check out my code from github?
Kevin Lanni
@therealklanni
No, I started from scratch. I need to make sure I know the process from start to finish so I can document it.
Hmm, I don't see any errors in the logs. Also the instance shut down automatically. The ping should have kept it alive.
Kevin Lanni
@therealklanni
Anyway, I started it back up but I still get 404 on /apply
What did you have to do to get that part working?
Kevin Lanni
@therealklanni
WTF am I missing?
Logikz
@Logikz
hello, getting the following error on startup - any suggestions?
2015-02-27T17:15:29.204132+00:00 heroku[web.1]: State changed from starting to u
p
2015-02-27T17:15:29.344779+00:00 app[web.1]: [Fri Feb 27 2015 17:15:29 GMT+0000
(UTC)] INFO Logged in as jarvis of OC Ingress, but not yet connected
2015-02-27T17:15:30.016614+00:00 app[web.1]: [Fri Feb 27 2015 17:15:30 GMT+0000
(UTC)] INFO Slack client now connected
2015-02-27T17:15:30.206486+00:00 app[web.1]:   at Robot.loadExternalScripts (/ap
p/node_modules/hubot/src/robot.coffee:263:11, <js>:212:39)
2015-02-27T17:15:30.206491+00:00 app[web.1]:   at Object.oncomplete (fs.js:108:1
5)
2015-02-27T17:15:30.206493+00:00 app[web.1]:
2015-02-27T17:15:30.206479+00:00 app[web.1]: [Fri Feb 27 2015 17:15:30 GMT+0000
(UTC)] ERROR Error loading scripts from npm package - TypeError: object is not a
 function
2015-02-27T17:15:30.206488+00:00 app[web.1]:   at /app/node_modules/hubot/bin/hu
bot:119:11, <js>:123:26
2015-02-27T17:15:30.206490+00:00 app[web.1]:   at fs.js:272:14
2015-02-27T17:15:31.408632+00:00 heroku[web.1]: Process exited with status 1
2015-02-27T17:15:31.419806+00:00 heroku[web.1]: State changed from up to crashed
Dan Webb
@damacus
@Logikz I'd guess your package.json wasn't formatted correctly.
Dan Webb
@damacus
@ankorite @therealklanni did you ever get this working? Having some trouble, I wonder if it's just the case of the wrong hubot version. Though your PR was 6months ago.
Kevin Lanni
@therealklanni
Hey guys, the issue is that it requires a custom Hubot that initializes Express with the proper middleware. I had another request for this as well, so I will likely publish something that enables this functionality. My idea is for this package to initialize its own Express app separate from Hubot, since there was a problem getting these changes to Hubot merged upstream. This way, a separate Express app can serve the invite request pages and Hubot can just access those via routes.
I will get around to it when I have time, but I have a lot going on at the moment which takes priority.
Dan Webb
@damacus
thanks @therealklanni !
Jonjoe Whitfield
@Jonjoe
Hey!
is there a default robot.hear?
so if nothing matches fun x