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?



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.


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.


Suchit Kharatmol

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


That was indeed the problem. 


Suggest an answer

Log in or Sign up to answer
Community showcase
Published 16 hours ago in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

151 views 0 0
Read article

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