You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
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:
----
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This solution worked in my case, I was trying to run confluence-helloworld-plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.