ph-slack
ph-slack copied to clipboard
Issues with POST from Phabricator?
Getting a stack trace regarding JSON:
Got story #xxxx on #xxxxx: x created x: x.
Refreshing slack members.
Exception on /handle [POST]
Traceback (most recent call last):
File "/home/centos/phab-slack/ph-slack/eggs/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/centos/phab-slack/ph-slack/eggs/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/centos/phab-slack/ph-slack/eggs/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/centos/phab-slack/ph-slack/eggs/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/home/centos/phab-slack/ph-slack/eggs/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/centos/phab-slack/ph-slack/ph_slack/web.py", line 62, in handle
subscribers = [s for s in ph_obj.subscribers if s.phid != author_phid]
File "/home/centos/phab-slack/ph-slack/ph_slack/phabricator.py", line 99, in subscribers
obj for obj in self.cc_objs if isinstance(obj, Project)
File "/home/centos/phab-slack/ph-slack/ph_slack/phabricator.py", line 116, in cc_objs
self.sync()
File "/home/centos/phab-slack/ph-slack/ph_slack/phabricator.py", line 27, in sync
datadict = self.query_data_by_phids(self.phabricator, self.phid)
File "/home/centos/phab-slack/ph-slack/ph_slack/phabricator.py", line 154, in query_data_by_phids
r = phabricator.client.differential.query(phids=phids)
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 212, in call
return self._request(**kwargs)
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 246, in _request
self.api.connect()
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 319, in connect
client=self.client, clientVersion=self.clientVersion)
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 212, in call
return self._request(**kwargs)
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 270, in _request
data = self._parse_response(response.read())
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 276, in _parse_response
parsed = self.api.formatsself.api.response_format
File "/home/centos/phab-slack/ph-slack/eggs/phabricator-0.4.0-py2.7.egg/phabricator/init.py", line 287, in
This is running on AWS Linux, if that makes any difference.
Seems like this is a permission issue. Does the account configured on AWS have the permission to access the Phabricator API?
I am having the same issue. What's happening?