Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Errors out of the box #11

Open
lgwapnitsky opened this issue May 31, 2017 · 1 comment
Open

Errors out of the box #11

lgwapnitsky opened this issue May 31, 2017 · 1 comment

Comments

@lgwapnitsky
Copy link

lgwapnitsky commented May 31, 2017

"Created" the app using a git clone of this project. Followed instructions, and connected successfully to my url/team. When performing any action, I get output such as:

127.0.0.1 - - [31/May/2017 15:02:04] "POST /listening HTTP/1.1" 500 -
Traceback (most recent call last):
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 2000, in call
return self.wsgi_app(environ, start_response)
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/home/slackdev/env/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/slackdev/Slack-Python-Onboarding-Tutorial/app.py", line 139, in hears
return _event_handler(event_type, slack_event)
File "/home/slackdev/Slack-Python-Onboarding-Tutorial/app.py", line 60, in _event_handler
pyBot.update_emoji(team_id, user_id)
File "/home/slackdev/Slack-Python-Onboarding-Tutorial/bot.py", line 168, in update_emoji
message_obj = self.messages[team_id].get(user_id)
KeyError: u'T0G61B5K9'

I'm running Python2 on a Ubuntu 16.04 server as a hyper-v, routing through ngrok.

This is my first attempt at using self-created bots, and python is my preferred language.

Thank you,
Larry

@nbortolotti
Copy link

same error Python2 . mac environment.

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

No branches or pull requests

2 participants