Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,610
Community Members
 
Community Events
184
Community Groups

Error fetching projects: Unexpected response code: 401

Hi, 

I'm trying to import test cases via Zephyr test case importer jar for a Cloud project, I've provided all the required details (URL, username, password, Access key & secret key) and tried to connect. It is throwing me an error "Error fetching projects: Unexpected response code: 401". 

I've gone through few post and they have asked us to use /rest in the end of the URL. I tried even that, but its not working out. Also, I've tried to re-generate the keys and provided that. In User name field, tried both user name and email, both the combinations are throwing me the same error. 

URL: tried both https://myprojectsite.atlassian.net/rest & https://myprojectsite.atlassian.net/
User Name: tried both username & email

Can someone help me on this please ? 

Thanks, 
Lavanya 

1 comment

Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 13, 2019

Hi @Lavanya_harikumar 

I don't know anything about Zephyr, but I know that using the REST API requires people to use their Jira e-mail address and an API token (see this) or they get a 401 error - not sure if this will work for you

Hi @Warren ,

Thank you for sharing the info ! And it worked out for me :)

I did the below and am able to connect to the projects

1) Provide your URL with /rest 
2) User Name - Provide your email address
3) Password - Generate the API token via (https://id.atlassian.com/manage/api-tokens)
4) Provide the access & secret keys 

Click on connect, this will enable the projects drop down and all the projects will be displayed. 

The mistake that i did is, I was trying to use the portal password instead of API token. @Warren post has the details about this. 

Thanks,
Lavanya 


 

Thanks much for putting the instructions.  This worked for us as well. 

 

Regards,

Sharon

Comment

Log in or Sign up to comment