Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Pipeline not properly working #63

Open
michwii opened this issue Aug 6, 2020 · 2 comments
Open

Azure Pipeline not properly working #63

michwii opened this issue Aug 6, 2020 · 2 comments

Comments

@michwii
Copy link

michwii commented Aug 6, 2020

Hello,

I am trying to run your sample on my Azure DevOps subscription.

What I did :

  • Creating a variable group name called : sampleapp-keystore
  • In this variable group, putting 3 variables
    • android-alias
    • android-key-password
    • keystore-password
  • uploading a secure file called : appcenter-sampleapp.keystore
  • creating an AppCenter service connection and putting in it the correct APP API Key that I have created from my AppCenter project
  • Autorizing the pipeline to access to the secure file and the service connection
  • Launching the pipeline

After doing so, I am getting the following error :
`Preparing tests... done.
Tests are ready to run. Manifest file was written to /Users/runner/work/1/a/AppCenterTest/manifest.json
/usr/local/bin/appcenter test run manifest --manifest-path /Users/runner/work/1/a/AppCenterTest/manifest.json --app-path /Users/runner/work/1/s/app/build/outputs/apk/debug/app-debug.apk --app XTCTeam/appcenter-sampleapp-android --devices ef7113b6 --test-series master --locale en_US --quiet --token ***
Preparing tests... done.
Error: API token does not belong to the requested app.

Further error details: For help, please send both the reported error above and the following environment information to us by going to https://appcenter.ms/apps and opening a support ticket (using the help menu in the upper right corner of the screen)

Environment: darwin
App Upload Id: XTCTeam/appcenter-sampleapp-android
Timestamp: 1596727482313
Operation: RunManifestTestsCommand
Exit Code: 3

##[error]Error: /usr/local/bin/appcenter failed with return code: 3
Finishing: AppCenterTest
`

Do you guys are sure that your Azure Pipeline is correct ?

In the repo it says that it has never been launched...

Thank you for your help and time.

Regards

@Kovah
Copy link

Kovah commented Oct 25, 2021

Hi, I recently got the same error message: "API token does not belong to the requested app."

I noticed that the app name was wrong. When referencing the app name from the CLI, take the name from the URL, and not from the settings page. If you ever changed the app name, check this. In your case: XTCTeam/appcenter-sampleapp-android could be the wrong app name.

example url

@oshriza
Copy link

oshriza commented Dec 13, 2023

Hi, I recently got the same error message: "API token does not belong to the requested app."

I noticed that the app name was wrong. When referencing the app name from the CLI, take the name from the URL, and not from the settings page. If you ever changed the app name, check this. In your case: XTCTeam/appcenter-sampleapp-android could be the wrong app name.

example url

@Kovah
OMG!!!, you saved me!!
I was a hour on this sh*t, my org, changed the name of the app and we have few envs, and I tried to understand what wrong!!!
but why they did not update the url when the app name changed?

Thank you!!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants