Phabricator-PHP-API
Phabricator-PHP-API copied to clipboard
Error "ERR-INVALID-SESSION: Session key is not present" thrown with valid API token
Hello,
I am sometimes getting the error
ERR-INVALID-SESSION: Session key is not present.
While using the Maniphest endpoint, even though I am using a valid API token and I am able to manipulate Phabricator tasks other times.
What could be the problem? Session timeout?
Thanks in advance!
Nice project! 👍
Okay, I dig into phabricator code.
When you give this warning the conduit assumes that you are using session based authentication. This is not true, because this client use token based authentication instead of session based.
Lokk this section at Phabricator code: https://github.com/phacility/phabricator/blob/c71bb0550c5d42a0fc3c801b9de70fbd1aa7fe96/src/applications/conduit/controller/PhabricatorConduitAPIController.php#L425-L427
Probably is this a bug in Phabricator. Can you give a ticket for the team about it?
Thank you @Zolli I will.
Any workaround?