Search code examples
oauth-2.0google-apps-marketplace

How to deal with the errors of UpgradeableApp api which is used to upgrade google apps marketplace application to use OAuth 2.0 authentication?


We are using UpgradeableApp api to upgrade our google apps marketplace application to use oauth2 authentication. But when we invoke this api, we get the following error:

{
    "error": {
        "errors": [{
            "domain": "global",
            "reason": "conditionNotMet",
            "message": "AppId 691703567391 for listing id 3198+1842896415262219465 is not Oauth1.0 enabled.",
            "locationType": "header",
            "location": "If-Match"
        }],
        "code": 412,
        "message": "AppId 691703567391 for listing id 3198+1842896415262219465 is not Oauth1.0 enabled."
    }
}

What does it mean? And how we can handler this error?


Solution

  • This particular bug emerged because the app in question mixed OAuth1 & OAuth2-based clients. The team has pushed a fix and it should role out in a couple of days.