Search code examples
androidhuawei-mobile-serviceshuawei-developersappgallery

Huawei AppGallery Connect API - 403 client token authorization fail


I am trying to automate the app publishing process to the Huawei store using the REST APIs as mentioned in the link. https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agcapi-overview

I successfully received an access token but other operations(ex: getting the app info, getting the upload URL) are getting failed with the below status code and error.

403 client token authorization fail.

I did not write any code, I simply used the below sample code and updated clientId, clientSecret, appId.

https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Examples/agcapi-publish_api_code

What could go wrong?


Solution

  • As said in this comment, Once I set the project to NA it started working.

    Thanks to @shirley