codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
235 stars 39 forks source link

Handle for `oauth2client` errors in Google Play API client #379

Closed priitlatt closed 7 months ago

priitlatt commented 7 months ago

When executing Google Play API request fails with oauth2client.client.Error then the called action fails unexpectedly. For example:

$ google-play get-latest-build-number --package-name "com.example.app" --tracks "internal"
Get package "com.example.app" latest build number from track "internal"
Executing "google-play get-latest-build-number" failed unexpectedly. Detailed logs are available at "/var/folders/w2/rrf5p87d1bbfyphxc7jdnyvh0000gn/T/codemagic-29-11-23.log". To see more details about the error, add "--verbose" command line option.

Needless to say that this is cryptic for users and difficult to act upon. As a workaround handle those errors similarly to errors from googleapiclient.errors.

Updated actions: