Description
When you start an mPaaS Mini Program in your app, the error "Application update error (1001)" appears.
Causes
This error occurs when the client fails to retrieve Mini Program information after calling the Mobile Data Sync (MDS) update API.
Before the mPaaS framework opens a Mini Program, the client must retrieve the program's basic information. The client sends a Remote Procedure Call (RPC) request to verify details with the server-side, such as the version number, device, and system. The "Application update error" message appears if the client fails to retrieve the information or find the target application.
Possible causes include the following:
The Mini Program is not published on the server-side. This can happen if the uploaded Mini Program is not published in the console, or if the newly published program has not yet propagated to the server-side.
The client version number is out of the specified range.
The request information does not match the rules published on the server-side.
Troubleshooting
In the Android Studio console, filter the logs for `DynamicRelease`. Check the `UnionResourceInfo` object for item information. This information is sent from the server to the client.
Log on to the mPaaS console. Go to Mini Program>Mini Program Publishing and check the program's status. The server cannot provide the Mini Program information if the status is Pending or Released.
Check the client version range. This range corresponds to the `versionName` value in your Android project. The client can pull the mPaaS Mini Program only if the app's current version is within the specified minimum and maximum versions. Otherwise, the pull fails and the error appears.
NoteFor your production release, set the version range to match your actual client versions.
If the problem persists, prepare a demo project that reproduces the issue. Then, search for DingTalk group number 145930007362 for assistance.