Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issues registering add-on while going through ACE tutorial

Edited

I've looked at all the different Q&A's available on this subject and I still do not have a solution. It has never worked for me. Atlassian servers were never down so that's a non-issue here.

The user I am using to access the API has VIEW and EDIT access to the Confluence space I want. I can successfully get data using the CURL requests (given by the extensive documentation). 

Unfortunately, when I'm trying to run through this tutorial:
https://bitbucket.org/atlassian/atlassian-connect-express/src

I always get this on 'npm start':


Registering add-on...
Failed to register with host https://<username@email.com>:<token>@<my-company>.atlassian.net/wiki (401)
Must have permission to access this resource.
Add-on not registered; no compatible hosts detected

 My credentials.json looks like this:


{ "hosts": {
"<my-company>.atlassian.net": {
"product": "confluence",
"username": "<username@email.com>",
"password": "<token>" } }}

I know my user has the access (otherwise I'd fail to get anything when going directly to the page or through the CURL requests).

Additionally I've made sure that Development Mode is enabled (and has always been enabled).

Without being able to register, authentication cannot occur and fails.

Any ideas here? 

1 answer

0 votes
Ian Atlassian Team Jun 02, 2019

Hello @Sophia Chen

To install apps in your instance, you would need administrator access which also applies when installing your app via ACE. Having said that, you can either request to have admin access granted to your account or use an admin's credentials (I'm not saying it will be allowed though :) ).

If you are in the exploration and development stage, I would suggest that you create a dev instance first in go.atlassian.com/cloud-dev. There you will be the site-admin and will have the necessary powers to test your connect app.

Hope this helps.

Ian

UPDATE:

I was finally able to connect! The solution, as expected, had to be something very simple, not obvious, and totally absent from the documentation!!! Here it is: add 'https://' to your atlassian domain URL in the credentials.json file. Like this:

{
    "hosts" : {
          "product" : "confluence",
          "username" : "youremail@yourdomain.com",
          "password" : "yourapikey"
       }
    }
 }
While I am relieved that this resolved it, I am still very disappointed in my experience with Atlassian documentation - and not only regarding this issue. My project is for work and I already wasted almost 3 weeks trying to connect to the API (and I tried many, many different approaches and recommendations, not just ACE).

 

----

Ian,

... except that it didn't help: in my case, alas identical to the one described by Sophia, I am using the development site as recommended - to which I am supposedly the admin and should allow me to register my app via ACE. So, can you or anyone help? This is two years after that post, and it seems to still be a problem. Atlassian documentation and sample tutorials are grossly outdated or wrong, that's the conclusion I am reaching after 3 weeks of trying to get this to work whichever way it's documented by Atlassian! Can you please point us to updated, accurate versions?

BTW, the example code and project are outdated and it generates many deprecation or vulnerability warnings in Node, as well.

 Can anyone please help, at all? Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

183 views 0 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you