Skip to content

uploadTestCaseAttachment() raise ProtocolError: 500 Internal Server Error #116

@yuechuanx

Description

@yuechuanx

Try to run TestLinkExample.py in python version 3.5, then got a Error as follows:

Traceback (most recent call last):
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/site-packages/testlink/testlinkapigeneric.py", line 1992, in _callServer
    response = getattr(self.server.tl, methodNameAPI)(argsAPI)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
    return self.__send(self.__name, args)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/xmlrpc/client.py", line 1432, in __request
    verbose=self.__verbose
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/xmlrpc/client.py", line 1134, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/xmlrpc/client.py", line 1167, in single_request
    dict(resp.getheaders())
xmlrpc.client.ProtocolError: <ProtocolError for localhost/lib/api/xmlrpc/v1/xmlrpc.php: 500 Internal Server Error>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/xiaoy/PycharmProjects/TLVisualizer/TestLinkExample.py", line 693, in <module>
    description='PNG Attachment Example for a TestCase')
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/site-packages/testlink/testlinkdecorators.py", line 168, in wrapperAddAttachment
    return methodAPI(self, *argsPositional, **argsAttachment)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/site-packages/testlink/testlinkdecorators.py", line 100, in wrapperWithArgs
    *argsPositional, **argsOptional)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/site-packages/testlink/testlinkapigeneric.py", line 1517, in callServerWithPosArgs
    response = self._callServer(methodNameAPI, argsOptional)
  File "/Users/xiaoy/anaconda3/envs/py35/lib/python3.5/site-packages/testlink/testlinkapigeneric.py", line 1996, in _callServer
    raise testlinkerrors.TLConnectionError(new_msg)
testlink.testlinkerrors.TLConnectionError: problems connecting the TestLink Server http://localhost/lib/api/xmlrpc/v1/xmlrpc.php
<ProtocolError for localhost/lib/api/xmlrpc/v1/xmlrpc.php: 500 Internal Server Error>

code position is here:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions