I've used the sample code of Huawei AppGallery's Connect API as base for automating app publishing. This is mainly going well, but is failing when trying to set an uploaded app bundle as draft.
These are the steps we are doing:
- Getting a token
- Getting app info
- Uploading app bundle
- This step fails: Updating "app file info"
The sample code's model classes seemed to miss a field for the fileName according to the documentation for updating app file information when uploading an app package, so I have added that.
When updating the file info I get the following error message back:
{"code":204144647,"msg":"[cds]update service failed, additional msg is [The new service has can't be edited service,which can't be updated!]"}
The common result codes only describes this as "Failed to update the service."
What could the underlying problem be? And how can it be fixed?