Jump to content

python API tutorial error


Recommended Posts


I am trying to follow th python_API tutorial but I cant connect to my server. What am I missing?

I am following the code from the tutorial with my server, api key, and username but I get the following error

>>> session = ftrack_api.Session(
...     server_url='http://mycompany.ftrackapp.com',
...     api_key='7545384e-a653-11e1-a82c-f22c11dd25eq',
...     api_user='martin'
... )


Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 224, in __init__
    self._server_information = self._fetch_server_information()
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 1317, in _fetch_server_information
    result = self._call([{'action': 'query_server_information'}])
  File "C:\Python27\lib\site-packages\ftrack_api\session.py", line 1620, in _call
    raise ftrack_api.exception.ServerError(error_message)
ftrack_api.exception.ServerError: Server reported error: HTTPMethodNotAllowed()

Link to comment
Share on other sites

  • 1 year later...


This topic is now archived and is closed to further replies.

  • Create New...