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

Upload not working - Invalid response body while trying to fetch ... read ECONNRESET #202

Open
1 task done
DFelten opened this issue Nov 15, 2023 · 3 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@DFelten
Copy link

DFelten commented Nov 15, 2023

Describe the bug

The upload of the aab file to the PlayStore is not working. Each time there is an error and nothing is uploaded. The workflow worked until a while ago and suddenly stopped working.

Error:

Invalid response body while trying to fetch https://androidpublisher.googleapis.com/androidpublisher/v3/applications/de.dealdoktor.app/edits: read ECONNRESET

Workflow Step Configuration

- name: Upload artifact to Google PlayStore
  uses: r0adkll/upload-google-play@v1.1.2
  with:
    serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
    packageName: de.dealdoktor.app
    releaseFiles: app-prod-release.aab
    track: internal
    status: draft

Step Debugging

Log
##[debug]Evaluating condition for step: 'Upload artifact to Google PlayStore'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Upload artifact to Google PlayStore
##[debug]Loading inputs
##[debug]Evaluating: secrets.GOOGLE_SERVICE_ACCOUNT_JSON
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GOOGLE_SERVICE_ACCOUNT_JSON'
##[debug]=> '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Result: '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Evaluating: vars.ANDROID_PACKAGE_NAME
##[debug]Evaluating Index:
##[debug]..Evaluating vars:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANDROID_PACKAGE_NAME'
##[debug]=> 'de.dealdoktor.app'
##[debug]Result: 'de.dealdoktor.app'
##[debug]Loading env
Run r0adkll/upload-google-play@v1.1.2
  with:
    serviceAccountJsonPlainText: ***
    packageName: de.dealdoktor.app
    releaseFiles: app-prod-release.aab
    track: internal
    status: draft
    inAppUpdatePriority: 0
    changesNotSentForReview: false
Creating a new Edit for this release
Error: Invalid response body while trying to fetch https://androidpublisher.googleapis.com/androidpublisher/v3/applications/de.dealdoktor.app/edits: read ECONNRESET
##[debug]Cleaning up service account json file
##[debug]Node Action run completed with exit code 1
##[debug]GOOGLE_APPLICATION_CREDENTIALS='./serviceAccountJson.json'
##[debug]Finishing: Upload artifact to Google PlayStore
@DFelten DFelten added the bug Something isn't working label Nov 15, 2023
@boswelja
Copy link
Collaborator

"ECONNRESET" means the other side of the TCP conversation abruptly closed its end of the connection.

This seems like an issue on Google's end, there's not much we can do about it

@fortunacio
Copy link

same error here.

@fortunacio
Copy link

fortunacio commented Dec 14, 2023

While working with this action and implementing a retry mechanism, I came across a specific error: "Changes are sent for review automatically. The query parameter changesNotSentForReview must not be set." It appears this parameter is hardcoded into the request, making it impossible to change or remove within the current implementation. As a temporary fix, I've forked the repo to address this issue, which seems related to particular Google Play Console configurations. You can find my fork here.

This might be useful for others facing the same situation.

Best regards,

Elpata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants