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

cannot resolve the 500 error issue #210

Closed
vafu opened this issue Apr 19, 2017 · 9 comments
Closed

cannot resolve the 500 error issue #210

vafu opened this issue Apr 19, 2017 · 9 comments

Comments

@vafu
Copy link

vafu commented Apr 19, 2017

trying to work make it work: here is my gradle file

apply plugin: 'com.android.application'
//.......//
apply plugin: 'com.github.triplet.play'

android {

    playAccountConfigs {
        defaultAccountConfig {
            serviceAccountEmail = '<my-user>@developer.gserviceaccount.com'
            pk12File = file('Google Play Android Developer-<my-user>.p12')
        }
    }

    signingConfigs {
        Config {
            //working signing config
        }
    }
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    def versionPropsFile = file('version.properties')
    if (versionPropsFile.canRead()) {
        def Properties versionProps = new Properties()

        versionProps.load(new FileInputStream(versionPropsFile))

        def value = 0

        def runTasks = gradle.startParameter.taskNames
        if ( 'publishApkRelease' in runTasks) {
            value = 1;
        }

        def versionMajor = 1
        def versionMinor = 0
        def versionPatch = versionProps['VERSION_PATCH'].toInteger() + value
        def versionBuild = versionProps['VERSION_BUILD'].toInteger() + 1
        def versionNumber = versionProps['VERSION_NUMBER'].toInteger() + value

        versionProps['VERSION_PATCH'] = versionPatch.toString()
        versionProps['VERSION_BUILD'] = versionBuild.toString()
        versionProps['VERSION_NUMBER'] = versionNumber.toString()

        versionProps.store(versionPropsFile.newWriter(), null)

        defaultConfig {
            playAccountConfig = playAccountConfigs.defaultAccountConfig

            applicationId "com.cloudit.dashcraft"
            minSdkVersion 16
            targetSdkVersion 25
            versionName "${versionMajor}.${versionMinor}.${versionPatch} (${versionBuild})"

            versionCode versionNumber

            multiDexEnabled true

            dexOptions {
                javaMaxHeapSize "2g"
            }

            setProperty("archivesBaseName", "$versionName")
        }

    } else {
        throw new GradleException("Could not read version.properties!")
    }



    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.Config
        }
    }
}

repositories {
    maven { url 'https://maven.fabric.io/public' }
    mavenCentral()
}


dependencies {
   //project dependencies
}

when running publishApkRelease:

* What went wrong:
Execution failed for task ':app:publishApkRelease'.
> com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
  {
    "code" : 500,
    "message" : null
  }

what's going on?

@papauschek
Copy link

same here 👍

@butelo
Copy link

butelo commented Apr 22, 2017

I have that error too

Error:Execution failed for task ':app:publishApkRelease'.
> com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
  {
    "code" : 500,
    "message" : null
  }

This happened with the alpha version, beta worked just fine btw

@SanCHEESE
Copy link

SanCHEESE commented Apr 24, 2017

same here for one of the application which is present on GPlay, but for internal adhoc builds and different app ids it works fine

@papauschek
Copy link

Just came across something that fixed the issue for me.

In the new Play Store Release Management it is possible to create draft releases. If one exists in the alpha release track, the publish API fails with the above status 500.

If you go to your releases in play store and see something like

You have a release in alpha that hasn't been rolled out

go into that release and discard it. Then the publish API can create a new one that works.

Hope this helps someone.

@SanCHEESE
Copy link

@papauschek Thank you! Worked like a charm!

@SanCHEESE
Copy link

So the fix should include just custom message explaining what's wrong, imo

@wheelerruss
Copy link

If it helps, I had a diff issue in my Play Store (I hadn't setup a price template).

I had a warning in the app releases section that I was missing something, after I created a template, the app releases was back to normal, and when I ran publishApkRelease, all good.

@SUPERCILEX
Copy link
Collaborator

Unfortunately, 500 is a really general error and it can kinda mean anything (see #120), so there's not much more we can do. Going to close this issue since it's been a while, but feel free to reopen if something else comes up.

@Catfriend1
Copy link

I'm seeing this error too:

https://www.googleapis.com/upload/androidpublisher/v3/applications/com.github.catfriend1.syncthingandroid/edits/055435675
51180603900/listings/ca/icon?uploadType=resumable

It didn't go away after clicking "Switch to the new image format" on GPlay console - still error 500.
I also tried to replace the transparent PNG by a PNG with solid background as described in https://developer.android.com/google-play/resources/icon-design-specifications , enforced by GPlay from 24/06/2019 + .

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

7 participants