oliviergauthier / gradle-appcenter-plugin

This gradle plugin allow you to upload each build variant of your android application to separate AppCenter Apps.
MIT License
84 stars 44 forks source link

error message is not readable #39

Closed srinivas3120 closed 4 years ago

srinivas3120 commented 4 years ago

com.betomorrow.gradle.appcenter.infra.AppCenterUploaderException: Can't prepare release upload, code=401, reason={"message":"9c103022-b3ce-41f7-b45c-de9ee51b72a1","statusCode":401,"code":"Unauthorized"}

whats the meaning of "message":"9c103022-b3ce-41f7-b45c-de9ee51b72a1" here ?

oliviergauthier commented 4 years ago

i think it's due to your token. maybe it has no write access or the user account that has generated the token has no write access for this appcenter app

srinivas3120 commented 4 years ago

this message gets changed on every execution for the same uploadTask. is it encrypted, how do i read the message?

oliviergauthier commented 4 years ago

Actually, all {"message":"9c103022-b3ce-41f7-b45c-de9ee51b72a1","statusCode":401,"code":"Unauthorized"} is the response body returned from AppCenter API when we try to prepare the release. 9c103022-b3ce-41f7-b45c-de9ee51b72a1 is probably an http requestId. The important part of the message is the http status code 401 which mean that you are not allowed to request the API. This is probably due to you token that is not valid

srinivas3120 commented 4 years ago

may be its requestId, it's coming from app center api. i would have been nice if appcenter added a more meaningful message. Thank you.

closing this.