Zolli / Phabricator-PHP-API

PHP API for Phabricator Conduit application
GNU Lesser General Public License v3.0
21 stars 5 forks source link

Error "ERR-INVALID-SESSION: Session key is not present" thrown with valid API token #4

Open jpgamaral opened 7 years ago

jpgamaral commented 7 years ago

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! 👍

Zolli commented 7 years ago

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?

jpgamaral commented 7 years ago

Thank you @Zolli I will.

yangboz commented 6 years ago

Any workaround?