FAQs

Get answers to common questions about mini programs.

Mini program platform

Why does the request parameter error occur when I modify the mini program slogan and name?

The local CDN is not stable when the mini program image is uploaded. You can upload a new image and update the mini program information again.

Why do wallet admins not receive the notification of the approval request when mini program developers release mini programs in the sandbox environment?

Approval is required only when the mini program is released in the production environment. In other environments the mini program release is approved automatically.

Component

Why does the No Privilege error occur when using the WebView component?

You can try to solve the problem by the following checklist:  

  • Add required H5 domains to the whitelist under Mini Program > Configuration > H5 Domain Whitelist.
  • Release the mini program in your environment, which can be sandbox environment, test environment, or development environment. Otherwise, the updated configuration does not take effect.

If you can't solve the problem with the provided solution, contact the technical support team of your site.

API

Why does the JSAPI call denied error occur when calling the my.request JSAPI?

You can try to solve the problem by the following checklist:

  • Add the required server domains to the whitelist under Mini Program > Configuration > Server Domain Whitelist.
  • Release the mini program in the sandbox environment, test environment, or development environment. Otherwise, the updated configuration does not take effect.
  • Check whether the JSAPI is private. If the called JSAPI is private, get the permission to call the JSAPI from the wallet first.

Why is the error code 4006 returned when I call the getAuthCode JSAPI?  

This error occurs because of the incorrect configurations at the merchant server side. You need to contact the server end developer for help.

Why does the No privilege error occur when I call some JSAPIs?

Check whether the JSAPI is private. If the called JSAPI is private, get the permission to call the JSAPI from the wallet first.

IDE

What's the maximum size of the mini program when uploading mini programs from IDE to the mini program platform?

The maximum size limit at the server side is 8MB. However, it's difficult to define the size limit of the source code because many factors impact the size of the packaged source code, such as image compressing. Currently the package for debugging on real devices has the maximum size. The file is stored in the directory as highlighted in the following figure. Except for this file, generally all files that are no more than 8MB can be uploaded.

image

Basic information

Does the mini program support SVG and gradient?

Yes. Progressive web apps (also referred as H5) and the image component in native mini programs support SVG. Progressive web apps support gradient. SVG is used in the user authentication, such as sliding the verification picture.