Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008115TestLinkAPI - XMLRPCpublic2017-10-17 08:542017-10-26 08:23
ReporterSELENMI 
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSOS Version
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0008115: Can not authenticate client: invalid developer key
DescriptionHi,

I am trying to use the API for testlink (1.9.11) with python (also tried with java).
The problem is that I am always getting the same error message:
testlink.testlinkerrors.TLResponseError: 2000: Can not authenticate client: invalid developer key
Additional InformationI already checked the previous topics about this error but nothing helped.

I am generating my API key via: My Settings -> API interface -> Generate a new key.

I also checked in \testlink repertory the config.inc.php file where both:
$tlCfg->api->enabled to TRUE and $tlCfg->exec_cfg->enabled_test_automation to ENABLED

I am connected to testlink as senior tester (not admin) does it have an influence? Hope that someone can help me with this issue.

Kind regards,

Michael
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserChrome
PHP Version
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0026944)
fman (administrator)
2017-10-18 20:43

next time use forum for questions
you need to create the api key for the user you are using to access testlink via api
(0026969)
SELENMI (reporter)
2017-10-26 08:23

Hi fman,

Sorry I didn't have access to the forum to post the question I think.

Can you please give me more information? Since I am creating the personnal API access key via testlink for my own user (with senior tester rights) then I use this devkey in the following code:

set TESTLINK_API_PYTHON_SERVER_URL=http://xxx.xx.xxx.xxx/testlink/lib/api/xmlrpc/v1/xmlrpc.php [^]
set TESTLINK_API_PYTHON_DEVKEY=xxxxxxxxxxxxxxxxxxx
python
import testlink
...

but I am getting the error testlink.testlinkerrors.TLResponseError: 2000: Can not authenticate client: invalid developer key.

Kind regards,

Michael

- Issue History
Date Modified Username Field Change
2017-10-17 08:54 SELENMI New Issue
2017-10-18 20:43 fman Note Added: 0026944
2017-10-18 20:43 fman QA Team - Task Workflow Status => TBD
2017-10-18 20:43 fman Status new => resolved
2017-10-18 20:43 fman Resolution open => no change required
2017-10-18 20:43 fman Assigned To => fman
2017-10-26 08:23 SELENMI Note Added: 0026969



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker