github2youtrack - Exception: 401

When running:

 

    github2youtrack -u razvan.panda@gmail.com -p badPsw https://fairy-tale-agi.myjetbrains.com/youtrack razvan-flavius-panda j7*hjqeAd2!lasd fairy-tale-agi-solutions/haskell-stack-fix

 

I get following exception:

 

Traceback (most recent call last):
 File "/home/neo/.local/bin/github2youtrack", line 11, in <module>
   load_entry_point('youtrack-scripts==0.1.34', 'console_scripts', 'github2youtrack')()
 File "/home/neo/.local/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 129, in main
   github_repo_owner)
 File "/home/neo/.local/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 228, in github2csv
   write_issues(r, issues_csvout, comments_csvout, github_repo, AUTH)
 File "/home/neo/.local/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 151, in write_issues
   raise Exception(r.status_code)
Exception: 401

2 comments
Comment actions Permalink
Official comment

Hello,

401 error means you are not authorized. Probably, the credentials are incorrect. Please check if you are able to log in to Youtrack and GitHub with these credentials.

If you are, then please try using a permanent token instead of login-password pair (-t key, https://www.jetbrains.com/help/youtrack/incloud/import-from-github.html#d3cdd372) and let me know the results.

Also, please note that this post is public, so I recommend avoiding posting sensitive data like passwords here. To share sensitive data, please create a support request here: https://youtrack-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66282

Comment actions Permalink

Thank you. I will try that.

 

The passwords I shared in the above command are dummy data so it is fine.

0

Please sign in to leave a comment.