# Interface Class FAQ Troubleshooting Guide

This article mainly provides solutions to common problems encountered by third-party platform development, and helps you to accelerate positioning and solve problems. In addition, it also provides relevant suggestions on how to effectively solve problems in the community, and build a good developer community and maintain a good atmosphere in the community.

# Self-examination

  1. and permission sets (keyword api Unauthorized) related issues please checkCommon Permissions Set Troubleshooting Guide

  2. and component_verify_Ticket related questions please checkcomponent_verify_Ticket Common Troubleshooting Guide

  3. the request parameter format error (keyword format error or invalid Format), which is usually a matter of json formatting. Be aware that utf8 Encoded and Unicode Encode and clean check whether json.dumps is performed()Or json_Encode()Please refer to the interface documentation in detail for coding.

  4. Time parameter format error (keyword invalid DateInfo or date format error Etc.), the time format is usually timestamped and there is usually a requirement for a start or end time, such as some interfaces ending yesterday instead of today, some starting 10 minutes from now at the earliest, and so on. Please check the interface document for details, and strictly follow the rules described in the interface document for correct parameter transmission.

  5. Illegal Use of Keywords invalid Xxx) and Invalid account (keyword invalid Xxx), encountered these error codes, please check the interface documentation, in strict accordance with the rules described in the interface documentation to correctly pass parameters and carefully check whether the currently used appid, secret, various codes, etc. are correct.

  6. For the interface return {"errcode": -1, "errmsg": "system error rid: xxxxx " }, usually a system problem at the time, please try again or wait a while. If the retry is invalid, please post to the community.

  7. For the interface return {"errcode": 45009, "errmsg": "reach max api daily quota limit rid: xxxxxx " }, the number of interface calls for the day is used up. If it is a Mini Program, you can log in.Public platformEmpty or call the interfaceclear_quota(This interface also applies to third-party platforms calling on its behalf).

  8. For the interface return {"errcode": 50002, "errmsg": "user limited rid: xxxxxx " }, usually the Mini Program or Official Account message template has been frozen, logged off or migrated. You can use your mobile phone to scan the Official Account message template or Mini Program code can be verified. In addition, the error code of 50007 is that the account is frozen.The public account is frozen by the system summary

  9. For the interface to return {"errcode": 61004, "errmsg": "access clientip is not registered requestIP: 119.147.XX.170 rid: 62c3e8ff-5a283261-XXXXXXXX"}

  • Need to add requestIP to the third-party platform - Development Materials - Whitelist IP address list
  • Note: Adding via the "Edit" entry will need to be published all over the network againAdd through the "Modify" entry effective immediately without the need for another full network release
  • Note: English is required between IPSeparated, no spaces or newlines
  1. For the interface to return {"errcode": 85085, "errmsg": "submit audit reach limit, please try later rid: 62b94387-2dec5d40-XXXXXXXX"}
  • Error 85085 means that the number of Mini Program arraignments has reached the upper limit of this month. The allocation rules for referral quota have been optimized: the monthly quota is allocated based on the number of referral in the past three months and the performance ranking of service providers. Service providers can query the monthly allocation quota and the remaining quota in the "audit area" of the Mini Program service provider assistant, and the "performance and equity area" query the monthly Mini Program data performance, which can be referred to in detail.https://developers.weixin.qq.com/community/minihome/doc/00022ce7b209f09f363b9c62958401?blockType=99
  • If the quota is not used due to the needs of business development, please apply for temporary quota increase in the service provider assistant Mini Program - my - audit management area. If you have more questions, you can contact the manual customer service through the "Consultation and Feedback" entrance for feedback. The customer service duty time is 9: 00-12: 00, 14: 00-18: 00 on weekdays.
  1. For the interface to return {"errcode": 80082, "errmsg": "miniprogram has no permission to plugin[wxAAAA] rid: 632c3a1b-2b8f5fd5-XXXX}
  • Mini Program without plugin[wxAAAA]Jurisdiction
  • You can apply for plugin permissions for Mini programs through the api, and you can view the documentation:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/plugin-management/managePlugin.html
  1. configure the Mini Program server, business domain name error "errcode":85301,"errmsg":"no domain to modify after filtered, please confirm the domain has been set in miniprogram or open, and follows the rule of domains rid: 63315600-699a199e-XXXXXXXX"...
  • The developer carefully checks whether the domain name is configured in the third-party platform-development materials, and must first register the domain name in the domain name (business domain name) of the mini-program server on the third-party platform before calling the interface for configuration
  • Note: 1, in the development of the configuration of domain names, domain names need to use EnglishSeparated, no spaces or line breaks in between
  • 2, configure the specific domain name in the development data, do not need to carry https/Http protocol
  1. configure Mini Program server domain name error {"errcode": 45104, "errmsg": "reach max domain quota limit rid: 62284ab1-74ec02fe-XXXXXXXX"}
  • There are only 50 opportunities to change the domain name of Mini Program server every month. Please use it reasonably. If you have used no new number of channels this month, you can only modify it next month.
  1. For the interface to return {"errcode": 61023, "errmsg": "refresh_Token is invalid rid: 6318167a-0d69d89b-XXXXXXXX"}。 It may be that the refresh_token is empty, or the refresh_token is invalid, and the refresh_token of another account can be used to obtain the refresh_token again through the interface https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerList.html Then call the API.

  2. more interface return error code information retrieval please seeReturn Code Dxplaination.

# About clear_Supplement to quota

  1. clear_quotaInterface, you can use access_token、component_access_token和authorizer_access_Token callBe careful not to call with the wrong token.

  2. at the same time clear_Quota interface, which is also used to clean up access_token、component_access_token和authorizer_access_The number of token calls, using its corresponding token can be called.

# Refresh Token Authorizer_refresh_Does the token need to be saved? Is there an expiration date?

A: As long as the merchant does not release the authorization, it has been valid (release authorization -->Reauthorizing to a third party platform changes the authorizer_refresh_token)

Can call the interfacegetAuthorizerListGet all authorized accounts Get authorizer_refresh_token。

Attention: authorizer_refresh_The token returns null, you need to call thegetAuthorizerRefreshTokenInterface in exchange for authorizer_refresh_Token

If the authorization code has expired, you can trigger an update authorization to obtain a new authorizer_refresh_token。

# Is there a limit to the number of interface requests?

Answer: There are limits, can be calledgetApiQuotaInterface gets the number of daily calls to the interface.

# How to get the online version information of the Mini Program?

A: Callable getVersionInfo Interface to get.

# Self-retrieval

In the case of self-investigation is still unable to solve the problem, you can post to the community for processing. However, in order to solve the problem quickly, you can conduct a relevant search before posting. As a rule of thumb, most problems can be solved in the community.

  1. Visit the Communityhttps://developers.weixin.qq.com/community/develop/mixflow

2, search in the upper right corner, if it is the interface type problem can be searched in accordance with the error code or errmsg.

And can also be screened

# Post processing

In the completion of self-investigation and self-retrieval, still can not solve the problem can be timely post processing. And when asking questions, please state that you have done the above, this will help to deal with the problem of speeding up the positioning of people on the post, and also help to build your professional impression in the community.

1, the interface class error Please provide the call interface returned rid.

2, if the call interface is not an error, but the result returned is wrong or in doubt. Please provide relevant APPID, request parameters, request time, return packet and other information.

3, if it is a third-party platform, please provide the appid of the third-party platform when posting (essential), if it also involves the Official Account message template or Mini Program, please also provide its appid. In addition, please provide as much error information as possible (please also provide screenshots if relevant), error log, the time of occurrence, etc.

  1. Suggestions on the description of the problem when posting:
  • Please use clear and meaningful topics, this will help the post to be more timely attention

  • Questions should be clear, and rambling questions will be marked as invalid

  • Please do not indicate that the problem is urgent. If it is a fault of the platform, it will be monitored and dealt with in a timely manner, please be patient.

  • Please do not repeat the post. If there is a failure of the platform and it affects your business, it is really a hurry, please do not repeat the post, the relevant progress will be dealt with in a timely manner in the original post.If you do not respond in time, it may still be processing, please be patient.

  • Please try not to post questions in private. Because if you send a letter to a student in private, only he or she can see it and deal with it. When the student is on vacation or busy with other things, your problem will not be dealt with in timeIt is recommended to post on the community, because the community's post will be seen and handled by multiple official personnel, which is more conducive to the timely resolution of your problem.

  • Add a brief explanation after the problem is solved. If your question has been resolved (in some cases, private messages will be sent to deal with it), please state it on the original post. This will help post handlers keep abreast of progress, and it will also benefit the community by helping others see real solutions when searching for related issues.