lczub / TestLink-API-Python-client

A Python client to use the TestLink API
105 stars 63 forks source link

Error type #125

Closed JuanYyo closed 4 years ago

JuanYyo commented 5 years ago

I have just set TESTLINK_API_PYTHON_SERVER_URL and TESTLINK_API_PYTHON_DEVKEY and execute the following in python:

tls = testlink.TestlinkAPIClient(TESTLINK_API_PYTHON_SERVER_URL,TESTLINK_API_PYTHON_DEVKEY)

tls.about()

Traceback (most recent call last): File "", line 1, in File "/home/qa/.pyenv/versions/3.6.0/lib/python3.6/site-packages/testlink/testlinkdecorators.py", line 78, in wrapperWithoutArgs return self.callServerWithPosArgs(methodAPI.name) File "/home/qa/.pyenv/versions/3.6.0/lib/python3.6/site-packages/testlink/testlinkapigeneric.py", line 1582, in callServerWithPosArgs response = self._callServer(methodNameAPI, argsOptional) File "/home/qa/.pyenv/versions/3.6.0/lib/python3.6/site-packages/testlink/testlinkapigeneric.py", line 2061, in _callServer raise testlinkerrors.TLConnectionError(new_msg) testlink.testlinkerrors.TLConnectionError: problems connecting the TestLink Server http://localhost/testlink/lib/api/xmlrpc/v1/xmlrpc.php [Errno 111] Connection refused

lczub commented 5 years ago

Hello JuanYyo,

I'm sorry, I was not able to reproduce it in my environment. Working with an invalid URL or DevKey returns different error messages. Even changing the testlink server config $tlCfg->api->enabled = FALSE; does not provoke it.

It looks for a communication problem, but I have currently no idea how to analyze it. Maybe https://serverfault.com/questions/725262/what-causes-the-connection-refused-message ?

Regards Luiko

lczub commented 4 years ago

no further response