ph-slack icon indicating copy to clipboard operation
ph-slack copied to clipboard

Issues with POST from Phabricator?

Open chuckyz opened this issue 10 years ago • 2 comments

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 'json': lambda x: json.loads(x), File "/usr/lib64/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

This is running on AWS Linux, if that makes any difference.

chuckyz avatar Jun 18 '15 23:06 chuckyz

Seems like this is a permission issue. Does the account configured on AWS have the permission to access the Phabricator API?

psjay avatar Jun 20 '15 10:06 psjay

I am having the same issue. What's happening?

rosgzc avatar Oct 22 '15 13:10 rosgzc