Coder Social home page Coder Social logo

Comments (24)

anthonymonori avatar anthonymonori commented on July 27, 2024 4

I suggest raising support tickets with Google Play as well, maybe we get a better answer and resolution as the issue seems to be more widespread and only affecting API usage (I was able to consistently upload via the web Console): https://support.google.com/googleplay/android-developer/contact/general_contact

from gradle-play-publisher.

simas-trafi avatar simas-trafi commented on July 27, 2024 1

We just ran into this issue as well. This is caused by an incomplete declaration of app's Financial features.

The deadline for that was August 31st. And it seems that they started rejecting builds into accounts that are not setup.

To fix this:

  1. Go to Google Play Store
  2. Open your app
  3. Go to App Content (under Policy and programs)
  4. Finish Financial Features declaration
  5. Submit changes for review (seems to take minutes)
  6. Publish your app
image

from gradle-play-publisher.

LudoFarkas avatar LudoFarkas commented on July 27, 2024 1

@SUPERCILEX , thanks for the tip. It might have occurred to me.

However, I'm quite sure the problem is not just the incomplete store listing. Our store listing is updated according to the comments above, and the store console does not show any issues.
In our case, there are 4 APKs to upload due to different ABIs. The sizes of the apks are from 70 to around 100 MB. So 'gradle-play-publisher' tries to upload 4 APKs and 4 times the same mapping = 8 files.

Here are my observations after setting the gradle log level to '--info' and observing the task multiple times:

  • The number of failed uploads is random. Sometimes just 1 file fails, sometimes 4. Once (after manually deleting the mapping), the task uploaded all APKs successfully.
  • There are a lot of responses with http code 308. That is expected, due to resumable file transfers.
  • But there are a couple of http 401 responses with a subsequent reauthentication.
  • I believe the uploads do not resume correctly after the auth and fail with insufficient data written.
  • The count of authentication calls is the same as the count of failed uploads.
  • I do not see a subsequent request with the same upload ID to the response with code 308, that happened prior to the authentication.

So, if the gradle error is:


> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$Processor
    > There were multiple failures while executing work items
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written

with 3 failed uploads, then there were 3 authentification calls during the task execution.

@SUPERCILEX , could you please have a look at it? Should I create a new issue?

from gradle-play-publisher.

spencerwhyte avatar spencerwhyte commented on July 27, 2024 1

I just finally got my act together and reached out to Google, I'll keep you posted when I hear back.

from gradle-play-publisher.

eygraber avatar eygraber commented on July 27, 2024 1

I contacted Google yesterday. They said they need time to look into it. I pointed them to this issue, but the more reports they get, the more real it will be to them.

from gradle-play-publisher.

Fenris77 avatar Fenris77 commented on July 27, 2024 1

Google seems to have fixed something in the meantime, because my apps got finally uploaded after many tries in the last three days.

from gradle-play-publisher.

sorinirimies avatar sorinirimies commented on July 27, 2024

We can confirm, we have encountered the same problem.

* What went wrong:
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
   > There was a failure while executing work items
      > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
         > insufficient data written

from gradle-play-publisher.

eygraber avatar eygraber commented on July 27, 2024

Thanks that was it for us as well

from gradle-play-publisher.

casperbang avatar casperbang commented on July 27, 2024

We also ran into this recently, although the problem was with a user-account deletion section recently added/modified for App Content. It would be nice if Google somehow disclosed this in the error for gradle-play-publisher to pick up on and report back, but I guess it's missing on Google's part.

from gradle-play-publisher.

LudoFarkas avatar LudoFarkas commented on July 27, 2024

We have this issue too, but it still persists even after declaring financial features and user-account deletion.

Our build generates multiple apks for different ABIs and it seems that 3 out of 4 apks are uploaded correctly. The publish task fails with "insufficient data written" error when uploading the 4th apk.

@SUPERCILEX , is there a switch to run the task in verbose mode with logging please?

from gradle-play-publisher.

Toubap avatar Toubap commented on July 27, 2024

I had the same issue with the Data safety section
Once submitted (even in review), it worked

from gradle-play-publisher.

SUPERCILEX avatar SUPERCILEX commented on July 27, 2024

@LudoFarkas https://docs.gradle.org/current/userguide/logging.html#logLevels debug dumps the network requests IIRC.

from gradle-play-publisher.

spencerwhyte avatar spencerwhyte commented on July 27, 2024

@LudoFarkas We are in a similar situation, even after submitting all of our documentation, we are still seeing this issue (but not consistently)

from gradle-play-publisher.

eygraber avatar eygraber commented on July 27, 2024

I'm reopening because this started happening again after filling out all required forms in the console and publishing that.

from gradle-play-publisher.

xserxses avatar xserxses commented on July 27, 2024

Confirming: We are affected as well

from gradle-play-publisher.

trevjonez avatar trevjonez commented on July 27, 2024

Even seeing where some uploads work and others fail inside the same invocation of gradle.
image

The stark difference in time spent before getting that error seems smelly to me.

from gradle-play-publisher.

ursusursus avatar ursusursus commented on July 27, 2024

We're seeing this as well. Is this a google issue?

from gradle-play-publisher.

mivittek avatar mivittek commented on July 27, 2024

Howdy there!

sadly i am seeing same issue in my project :( Listing in play store looks fine

> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$Processor
    > There were multiple failures while executing work items
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written

Any more ideas please ?

from gradle-play-publisher.

Vlado24 avatar Vlado24 commented on July 27, 2024

same here 🤔😢

from gradle-play-publisher.

cyberdreamandroid avatar cyberdreamandroid commented on July 27, 2024

Same here. I am really relying on this. Uploading it manually with mulitple ABIS and bundles is not really an option. Any alternative? Is someone in contact with Google already?

from gradle-play-publisher.

LudoFarkas avatar LudoFarkas commented on July 27, 2024

I too can confirm that all of our uploads were successful yesterday.

from gradle-play-publisher.

cyberdreamandroid avatar cyberdreamandroid commented on July 27, 2024

Working again. What a relief 👍

from gradle-play-publisher.

sorinirimies avatar sorinirimies commented on July 27, 2024

Confirming things are working again. The price for depending on centralized entities for our products.

from gradle-play-publisher.

github-actions avatar github-actions commented on July 27, 2024

This issue has been automatically marked as stale because it has not had recent
activity. It will be closed if no further activity occurs. Thank you for your
contributions.

from gradle-play-publisher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.