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

KeyError: 'expires_in' when processing the webhook from the Webchat of an Azure Bot #10

Open
balhissay opened this issue Aug 18, 2022 · 0 comments

Comments

@balhissay
Copy link

18:39:50 INFO werkzeug 127.0.0.1 - - [17/Aug/2022 18:39:50] "POST /botframework HTTP/1.1" 500 -
18:39:50 ERROR errbot.core_plugins Exception on /botframework [POST]
Traceback (most recent call last):
File "/home/carlosfe/.local/share/virtualenvs/errbot-U5BMEhuZ/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/carlosfe/.local/share/virtualenvs/errbot-U5BMEhuZ/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/carlosfe/.local/share/virtualenvs/errbot-U5BMEhuZ/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/carlosfe/.local/share/virtualenvs/errbot-U5BMEhuZ/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/carlosfe/PYTHON/CHATOPS/backend-plugins/errbot-backend-botframework/botframework.py", line 268, in post_botframework
errbot.send_feedback(msg)
File "/home/carlosfe/PYTHON/CHATOPS/backend-plugins/errbot-backend-botframework/botframework.py", line 232, in send_feedback
self._send_reply(feedback)
File "/home/carlosfe/PYTHON/CHATOPS/backend-plugins/errbot-backend-botframework/botframework.py", line 189, in _send_reply
access_token = self._ensure_token()
File "/home/carlosfe/PYTHON/CHATOPS/backend-plugins/errbot-backend-botframework/botframework.py", line 151, in _ensure_token
self._token = auth(self._appId, self._appPassword)
File "/home/carlosfe/PYTHON/CHATOPS/backend-plugins/errbot-backend-botframework/botframework.py", line 38, in auth
expires_in = r['expires_in']
KeyError: 'expires_in'

@balhissay balhissay changed the title KeyError: 'expires_in' when processing the webhook from the Webchat KeyError: 'expires_in' when processing the webhook from the Webchat of an Azure Bot Aug 18, 2022
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