I am using the latest script (youtrack-rest-python-library from github) to import data from a third party tool (mantis). It fails from the beginning with the following error :
youtrack.YouTrackException: Error for [/user/login]: 302: Moved Temporarily
The traceback is :
Traceback (most recent call last):
File "mantis2youtrack.py", line 465, in <module>
File "mantis2youtrack.py", line 21, in main
mantis_port, mantis_login, mantis_pass, mantis_product_names)
File "mantis2youtrack.py", line 342, in mantis2youtrack
target = Connection(target_url, target_login, target_pass)
File "/home/xyz/youtrack-rest-python-library-master/python/youtrack/connection.py", line 58, in __init__
File "/home/xyz/youtrack-rest-python-library-master/python/youtrack/connection.py", line 69, in _login
raise youtrack.YouTrackException('/user/login', response, content)
The command line is the following (with some minor change for personnal entries):
python mantis2youtrack.py "https://mydomain.myjetbrains.com/", "firstname.lastname@example.org", "mypasswd", dbmane, url_db, 3306, login_db, "pwd_db", myproject
So I am not able to login to my incloud youtrack instance using the script however I get a 200 response when I use postman directly.
For information this is a 2017.3 youtrack instance.
I have tried from several connection, so I am sure this is not a proxy issue.
Does someone know why I get this error and how can I solve it?