微信云开发官网
我遇到了一个非常棘手的问题,小程序在加载云存储图片时,反复出现 [代码]500 Internal Server Error[代码],和云开发工程师沟通了很久也未能解决,恳请官方帮忙看一下。 【环境信息】 微信开发者工具版本: [代码]v1.06.2504010[代码]开发者工具内置的云开发控制台版本: [代码]v1.6.32[代码]【问题现象】 [代码]pages/index/index.js[代码] 文件从 [代码]manifest.js[代码] 中读取书籍列表,列表中的 [代码]coverImage[代码] 字段是正确的 [代码]cloud://[代码] 路径。然后在页面上使用 [代码]<image src="{{item.coverImage}}">[代码] 来显示图片,但图片无法加载,控制台报错 [代码]500 Internal Server Error[代码]。 【我们已经完成的所有配置和排查步骤】 付费计划:已将云开发环境升级到付费版。存储权限:云存储的全局权限已设置为“所有用户可读,仅创建者可读写”。域名白名单:已在小程序后台的[代码]downloadFile合法域名[代码]中,正确添加了专属的云存储域名 ([代码]https://[我的长环境ID].tcb.qcloud.la[代码])。云开发初始化:已在 [代码]app.js[代码] 中,严格按照官方要求,使用短环境ID ([代码]cloud1-xxxxxx[代码]) 初始化云环境。文件路径:已在 [代码]generateContent.js[代码] 脚本中,生成了包含正确长环境ID ([代码]xxxx-cloud1-xxxxxx-xxxxxxxxxx[代码]) 的 [代码]cloud://[代码] 地址。【核心矛盾点】 在完成以上所有正确配置后,我们通过 [代码]console.log[代码] 打印日志,发现: 传递给页面的数据是正确的,[代码]coverImage[代码] 字段是正确的 [代码]cloud://[代码] 地址。但小程序在尝试渲染图片时,会报出一个 [代码]Failed to get temporary file URLs[代码] 的底层错误,错误详情是 [代码]FormatError(envId.length(34) NOT valid(1~32))[代码]。这证明了,小程序的前端SDK没有正确使用我们在 [代码]app.js[代码] 里初始化的短ID,而是错误地拿了文件路径里的长ID(一个34位的字符串)去做验证,导致了指令必然失败。我们已经排查到了极限,这看起来是一个在旧版云环境中,小程序前端SDK的底层Bug。恳请官方工程师帮忙确认一下,非常感谢!
调用云数据库的代码全删了,本来就写了一句话,还没调试成功,所以一定是删干净了。之后定时去数据概览那里查看次数,次数会定时增加?电脑的数据概览和小程序数据概览都会增加10-30次不等,这是正常现象吗?还是在偷偷计算?正常的话数据概览凭什么算次数呢?你们有遇到过类似的事情吗? [图片]
[图片] 想体验一下 公众号的开发流程,准备工作中可以使用云开发的环境共享,然后开通了云开发(免费版),添加环境共享时 appid 是正确的但是无法提交,提交按钮一直是灰色,有没有大佬知道怎么解决
使用可视化低代码的视频播放控件,在超管权限下可以正常播放,但其他用户报错,数据库权限已开,可不管是小程序体验还是web都不行,求教 [图片][图片][图片]
创建成功后压根没让我选支付方式,另外这个绑定的手机号也不知道 谁的啊 [图片][图片]
日志显示: 2025-07-17 14:19:00 有1个预约过期 2025-07-17 13:19:00 没有预约过期 请看图片截屏: [图片] [图片] 但从下图可以看到,“有1个预约过期”实际的业务时间是: 2025-07-17 13:19:00 [图片] 也就是说,云开发中显示的日志是错误的,正确的日志应该是: 2025-07-17 14:19:00 没有预约过期 2025-07-17 13:19:00 有1个预约过期 不知道各位开发者有没有发现同样的问题?
这个生成的h5支持外部浏览器打开跳转小程序吗?为什么我按步骤来的,通过微信打开可以跳转小程序,通过浏览器就不行 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/staticstorage/jump-miniprogram.html [图片]
[图片]
微信小程序,接入云智能语音插件,报错: TypeError: e is not a function at Function.<anonymous> (VM2755 appservice.js:1178) at :17831/appservice/<recorderManager.onPause callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Ht.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at Ht.emit (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at o._emit (WAServiceMainContext.js?t=wechat&v=3.8.9:1)(env: Windows,mp,1.06.2504010; lib: 3.8.9) app.js? [sm]:70 小程序错误: MiniProgramError e is not a function TypeError: e is not a function at Function.<anonymous> (http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1178:339) at <recorderManager.onPause callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Ht.<anonymous> (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:1775102) at Ht.emit (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:711286) at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:1773181 at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:707971 at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:697348 at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:108114 at o._emit (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:108030)(env: Windows,mp,1.06.2504010; lib: 3.8.9) onError @ app.js? [sm]:70 VM2755 appservice.js:1178 onFrameRecorded size: 327 VM2755 appservice.js:1157 加密前: POSTasr.cloud.tencent.com/asr/v1/0?end=0&engine_model_type=16k_zh&expired=1752568621&nonce=8121&res_type=0&result_text_format=0&secretid=&seq=0&source=0&sub_service_type=1&timeout=5000×tamp=1752568441&voice_format=8&voice_id= VM2755 appservice.js:1157 wx.base64后: La0ltZ6JQ/6u+N+bsvhFsZNP0jM= VM2755 appservice.js:1178 onFrameRecorded size: 327 VM2755 appservice.js:1157 加密前: POSTasr.cloud.tencent.com/asr/v1/0?end=0&engine_model_type=16k_zh&expired=1752568621&nonce=39060&res_type=0&result_text_format=0&secretid=&seq=1&source=0&sub_service_type=1&timeout=5000×tamp=1752568441&voice_format=8&voice_id= VM2755 appservice.js:1157 wx.base64后: sWH3VAU78TEgwk5XLuHc9lQlH20= VM2755 appservice.js:1157 queryASR fail: {"code":102,"message":"secretid: is required;voice_id: is required"} TypeError: o is not a function at VM2755 appservice.js:1178 at Function.success (VM2755 appservice.js:1157) at :17831/appservice/<api request success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Tu (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at Function.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at :17831/appservice/<NetworkRequest243success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Sm (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at WAServiceMainContext.js?t=wechat&v=3.8.9:1(env: Windows,mp,1.06.2504010; lib: 3.8.9) app.js? [sm]:70 小程序错误: MiniProgramError o is not a function TypeError: o is not a function at http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1178:1486 at Function.success (http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1157:722) at <api request success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Tu (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:734215) at Function.<anonymous> (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:879742) at <NetworkRequest243success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Sm (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849109) at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849769(env: Windows,mp,1.06.2504010; lib: 3.8.9) onError @ app.js? [sm]:70 VM2755 appservice.js:1157 queryASR fail: {"code":102,"message":"secretid: is required;voice_id: is required"} TypeError: o is not a function at VM2755 appservice.js:1178 at Function.success (VM2755 appservice.js:1157) at :17831/appservice/<api request success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Tu (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at Function.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at :17831/appservice/<NetworkRequest244success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Sm (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at WAServiceMainContext.js?t=wechat&v=3.8.9:1(env: Windows,mp,1.06.2504010; lib: 3.8.9) app.js? [sm]:70 小程序错误: MiniProgramError o is not a function TypeError: o is not a function at http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1178:1486 at Function.success (http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1157:722) at <api request success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Tu (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:734215) at Function.<anonymous> (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:879742) at <NetworkRequest244success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Sm (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849109) at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849769(env: Windows,mp,1.06.2504010; lib: 3.8.9) onError @ app.js? [sm]:70 VM2755 appservice.js:1178 onFrameRecorded size: 327 VM2755 appservice.js:1157 加密前: POSTasr.cloud.tencent.com/asr/v1/0?end=0&engine_model_type=16k_zh&expired=1752568621&nonce=38819&res_type=0&result_text_format=0&secretid=&seq=2&source=0&sub_service_type=1&timeout=5000×tamp=1752568441&voice_format=8&voice_id= VM2755 appservice.js:1157 wx.base64后: k7MtFnootqW+/CYcJYyj5hpF57U= VM2755 appservice.js:1157 queryASR fail: {"code":102,"message":"secretid: is required;voice_id: is required"} TypeError: o is not a function at VM2755 appservice.js:1178 at Function.success (VM2755 appservice.js:1157) at :17831/appservice/<api request success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Tu (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at Function.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at :17831/appservice/<NetworkRequest245success callback function> at WAServiceMainContext.js?t=wechat&v=3.8.9:1 at Sm (WAServiceMainContext.js?t=wechat&v=3.8.9:1) at WAServiceMainContext.js?t=wechat&v=3.8.9:1(env: Windows,mp,1.06.2504010; lib: 3.8.9) app.js? [sm]:70 小程序错误: MiniProgramError o is not a function TypeError: o is not a function at http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1178:1486 at Function.success (http://127.0.0.1:17831/appservice/__onlineplugin__/wx3e17776051baf153/2.3.12/appservice.js:1157:722) at <api request success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Tu (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:734215) at Function.<anonymous> (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:879742) at <NetworkRequest245success callback function> at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:157309 at Sm (http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849109) at http://127.0.0.1:17831/appservice/__dev__/WAServiceMainContext.js?t=wechat&v=3.8.9:1:849769(env: Windows,mp,1.06.2504010; lib: 3.8.9) 问AI,说是有云端鉴权没有生成。请问要如何处理?
wx.cloud.getTempFileURL方法换取到的地址,为啥返回的maxAge只有86400。 errMsg: "cloud.getTempFileURL:ok" fileList: Array(1) 0: errMsg: "ok" fileID: "cloud://dev-6g26owf1de0faf3e.6465-dev-6g26owf1de0faf3e-1365292025/my-photo0.png" maxAge: 86400 status: 0 tempFileURL: "https://6465-dev-6g26owf1de0faf3e-1365292025.tcb.qcloud.la/my-photo0.png?sig 86400
微信小程序云开发where怎么用一个字段查询多个值?
[图片]现在测试代码已经非常精简了[图片][图片]
小程序开发预览时都是正常的画面显示,发布为体验版后所有页面为什么都变了? [图片]
我需要的信息 云开发环境ID(your-env-id) 云开发环境的管理权限(上传/部署云函数) 云开发环境的归属账号(到底在哪个微信号/腾讯云账号下) 能帮我查下
https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/database/query.html
使用云开发SDK短信验证登录的时候,报错提示captcha_required,现在获取到了captcha_token怎么传入getVerification这个发短信的方法中去? [图片]
在云开发创建云函数getProducts的时候,为什么在微信开发者工具没有同步创建文件夹
[图片]调用云函数报错,最新版的pc端有严重bug pc端的微信支付商家助手都打不开!!!!!!!快点修复好吗?影响不大么,要么别放最新版的让用户下载了
const res = await cloud.CloudPay.profitSharingAddReceiver({ 调用这个添加分账接收方,没有这个函数 TypeError: Cannot read properties of undefined (reading 'profitSharingAddReceiver') 示例代码太少了
我的云环境和appid还是原来的,我就是在开发工具中删除了原来的项目,导入新项目之后关联不上云环境,
小程序示例
小程序官方示例Demo,包含云开发示例。
小程序示例
扫码体验
开发者工具里边点看看你的数据库,好像也是算次数的。
云后台也是算查询次数