{"errcode":40029,"errmsg":"invalid code, rid: 64e84b5d-05795dc9-5ff937fc"}
时间: 2023-09-06 17:08:30 浏览: 115
根据引用和引用的内容可以得知,当获取用户的openid时,参数需要拼接在URL连接上,否则会报错如{"errcode":40013,"errmsg":"invalid appid, hints: [ req_id: iil1ba0504ns86 ]"}。而在微信网页授权过程中,区分大小写是正规操作,所以需要注意大小写的问题。在引用中的例子中出现了类似的错误,错误提示为{errcode:40029,errmsg:invalid code},经过检查后发现是因为传给后端的code没有正确消费,在网上进行了一番搜索和调试后,发现问题在于从链接上获取的code被强制处理成了小写,导致验证失败。所以在获取链接上的code时,需要注意不要强制处理大小写。综上所述,当出现{"errcode":40029,"errmsg":"invalid code, rid: 64e84b5d-05795dc9-5ff937fc"}的错误时,需要检查传给后端的code是否正确消费,并注意大小写的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [关于微信小程序的支付开发:40013错误](https://download.csdn.net/download/weixin_38590790/16213652)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [微信网页授权报错{errcode:40029,errmsg:invalid code}](https://blog.csdn.net/weixin_44312227/article/details/127791356)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [微信小程序 报错errcode: 40029, errmsg: “invalid code](https://blog.csdn.net/qq_37916164/article/details/115523755)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文