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

error message when i try to install bit bucket app by descriptor URL

hameed0Z January 22, 2020

i'm developing a bitbucket app

i followed the documentaion and i created the the quick add on app
but i can't install it.

it keeps showing me err message whenever i try to install it saying 
Screenshot from 2020-01-22 12-20-05.pngScreenshot from 2020-01-22 12-20-50.png`invalid request. Please contact the app vendor for help.`

any idea how can i solve this issue

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2020

Hello @hameed0Z

Welcome to the Community!

Your tunnel is now down, so I can't check myself. Make sure that the URL you use in that form points to the Connect JSON descriptor. Ngrok logs on your side might also shed some light on what's wrong: it should show request path and response code.

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

hameed0Z January 23, 2020

i changed the tunnel 

and i'm sure the URL redirects to the connect JSON

i will leave the result of fetching the descriptor URL

Screenshot from 2020-01-23 10-28-19.png

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2020

Hey @hameed0Z, I found what is wrong.

So unfortunately Apps installation from URL flow is broken at the moment, and our team is looking into fixing it. Meanwhile you can use a workaround to install your app.

When logged into Bitbucket, go to the following URL:

https://bitbucket.org/site/addons/authorize?addon_key={app-key}&redirect_uri={base-url-of-your-app-from-descriptor}

So in your case it will be this (I'm using ngrok URL from the screenshot but obviously you'll need to adjust it):

https://bitbucket.org/site/addons/authorize?addon_key=hameed-bitbucket-app2&redirect_uri=https://063a38b8.ngrok.io

Note that the redirect_uri has to match base_url in your App descriptor (make sure to update your App in Bitbucket settings after you update its descriptor file).

When you navigate to that URL you'll see the grant access screen. After that you'll be redirected to your App base URL which can serve nothing, but if you then go to your account settings, you should see that App installed.

If it's not there, check your ngrok access log – there's probably an error when calling installed callback.

Hope this helps. I'm really sorry for the inconvenience. Let me know if you have any questions.

Cheers,
Daniil

Like yorlov likes this
Alice Wang August 6, 2020

Is Apps installation from URL fixed yet? I'm seeing the same error message when trying to install an app from URL (validated that the url points to the Connect JSON descriptor).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events