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 to App Center fails with error 400 #72

Open
swiatlow opened this issue Jun 24, 2021 · 4 comments
Open

Upload to App Center fails with error 400 #72

swiatlow opened this issue Jun 24, 2021 · 4 comments

Comments

@swiatlow
Copy link

swiatlow commented Jun 24, 2021

Hi, same issue is happening for me as described in closed issue here
Can't prepare release upload, code=400, reason={"status":400,"name":"Error","message":"Missing required body parameter "body""}

Is it maybe connected with the fact that endpoint is deprecated on AppCenter API?

@gmbett
Copy link

gmbett commented Jun 24, 2021

Did you try to upgrade to the latest version 1.3.0?

@swiatlow
Copy link
Author

Yes, I'm using 1.3.0, tried older plugin version on different product but have the same result - on both version the same deprecated url is being invoked for app upload (with 0 bytes body size when looking at logcat).

@gmbett
Copy link

gmbett commented Jun 24, 2021

Weird, version 1.3.0 works fine for me. I had indeed the same issue (missing body) with the previous version. As mentioned in the other ticket, the file_size must be greater than 0 error can happen when the file that you are trying to upload doesn't exist.

@petersanta
Copy link

Hi @swiatlow I had a similar problem, when I used my appCenterUpload command as before (like ./gradlew clean appCenterUpload).
(In my case appCenterUpload is responsible for uploading the apks.)

I recommend to call your gradle commands separately, something like this:

./gradlew clean
./gradlew assemble
./gradlew appCenterUpload

I hope this helps.

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

3 participants