PF_Wags Posted October 30, 2017 Report Share Posted October 30, 2017 Hello, 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 More sharing options...
Björn Rydahl Posted October 31, 2017 Report Share Posted October 31, 2017 Hi, your server is using a secure https connection so you need to ensure https is included in the url when you create the session: http://mycompany.ftrackapp.com should be https://mycompany.ftrackapp.com Cheers Link to comment Share on other sites More sharing options...
PF_Wags Posted October 31, 2017 Author Report Share Posted October 31, 2017 That was it! Thanks for the help. Link to comment Share on other sites More sharing options...
peter.kober Posted March 4, 2019 Report Share Posted March 4, 2019 Please update the tutorial document as this is still misleading new users with the http example instead of the required https. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.