JIRA->HipChat Authorization, 'Unable to generate an authorization code: Error sending request: 400'

When a user tries to create a room from our local JIRA instance to the cloud HipChat we are using, they are asked to confirm account access. (We host our JIRA and use web HipChat)

The dialog starts like this:

JIRA (local server) will be given limited access to your HipChat (web) group... then has a blue button "Grant access to JIRA.

After the user clicks the blue button they get the error in the title.  I can't figure out what rights I need to grant to make this work (as a site admin it works for me).  I have tried making the user an admin in HipChat, an admin in JIRA, I have double checked all JIRA permissions.  I am stumped.

Does anyone know what I need to do to make this work?

 

Thanks!

3 answers

It turned out to be fairly simple. One of the Atlassian engineers finally pointed us in the right direction. When the HipChat integration to JIRA was created, I had navigated to the ../plugins/servelet/hipchat/configure page using the fully qualified name of the JIRA server which was not the base url as defined in the JIRA application. Apparently this causes a problem with the authentication. I navigated to the page using the base URL removed the integration and recreated the integration. After that all was good. I hope this works for you.

Hi Scott,

We are also facing the same problem.Could you please share the detailed steps for resolving this error.

Appriciate your help!

Awaiting for your reply.

Thanks,

Suchit Kharatmol

Login to JIRA. Select Administration->Applications->HipChat. The page should be <base url>/plugins/servlet/hipchat/configure. Verify that the <base url> in the link matches the Base URL defined in the JIRA system settings. If it matches remove and recreate the HipChat integration.

Hi Scott,

Thank you so much for your help! It is worked for me as expected.

Thanks,

Suchit Kharatmol

We have the same problem. Did you by any chance resolve it, and could you share the solution?

Thanks!

That was indeed the problem. 

Thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot