Phabricator-PHP-API icon indicating copy to clipboard operation
Phabricator-PHP-API copied to clipboard

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

Open jpgamaral opened this issue 7 years ago • 3 comments

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

jpgamaral avatar Mar 28 '17 15:03 jpgamaral

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?

Zolli avatar Mar 29 '17 09:03 Zolli

Thank you @Zolli I will.

jpgamaral avatar Mar 31 '17 12:03 jpgamaral

Any workaround?

yangboz avatar Mar 23 '18 09:03 yangboz