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

Issues with POST from Phabricator? #2

Open
chuckyz opened this issue Jun 18, 2015 · 2 comments
Open

Issues with POST from Phabricator? #2

chuckyz opened this issue Jun 18, 2015 · 2 comments

Comments

@chuckyz
Copy link

chuckyz commented Jun 18, 2015

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.

@psjay
Copy link
Owner

psjay commented Jun 20, 2015

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

@rosgzc
Copy link

rosgzc commented Oct 22, 2015

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

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

3 participants