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

Getting ERR-INVALID-SESSION error after some time #3

Open
yunmanger1 opened this issue Jun 30, 2015 · 3 comments
Open

Getting ERR-INVALID-SESSION error after some time #3

yunmanger1 opened this issue Jun 30, 2015 · 3 comments
Assignees

Comments

@yunmanger1
Copy link

Looks like session expires. If I redeploy the app, it works again. How can we handle this?

Got story #389 on #PHID-TASK-qv6aa7ag3bulebb6gbyy: yun_man_ger edited the description of T57: asdasd.
Exception on /handle [POST]
Traceback (most recent call last):
  File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "ph_slack/web.py", line 64, in handle
    for s in ph_obj.subscribers
  File "/app/ph_slack/phab.py", line 99, in subscribers
    obj for obj in self.cc_objs if isinstance(obj, Project)
  File "/app/ph_slack/phab.py", line 116, in cc_objs
    self.sync()
  File "/app/ph_slack/phab.py", line 27, in sync
    datadict = self.query_data_by_phids(self.phabricator, self.phid)
  File "/app/ph_slack/phab.py", line 131, in query_data_by_phids
    r = phabricator.client.maniphest.query(phids=phids)
APIError: ERR-INVALID-SESSION: Session key is invalid.
@psjay psjay self-assigned this Jul 1, 2015
@psjay
Copy link
Owner

psjay commented Jul 1, 2015

Was the PHABRICATOR_CERT changed before the error occured?

@yunmanger1
Copy link
Author

No. PHABRICATOR_CERT is the same value. Restarting the app, makes it work again.

@psjay
Copy link
Owner

psjay commented Jul 5, 2015

Does the Phabricator instance itself restart occasionally?

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

2 participants