- 无法正常调用“商汤日日新”的商量大模型,怎么解决?
依据文本: https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/wx-service-market/invokeService.html https://fuwu.weixin.qq.com/service/detail/00080e24c842d0364e7030ae761415 小程序程序代码如下: cloud.openapi({ convertCase: false }).serviceMarket.invokeService({ "service": 'wx16e18f189768eb81', "api": 'ChatCompletions', "data": { messages:[{content: "你是谁?",role: "user"}],model: "SenseChat"}, "client_msg_id": 'id123', //async:true }) 返回数据:{data: "", errCode: 0, errMsg: "openapi.serviceMarket.invokeService:ok" provider_errmsg: "" request_id: "XXXXXXXXXXXXXXX" } 里面的data为空字符串,没有文档显示的base_resp数据
01-28 - 审核结果出现不会出现的页面,然后说审核不合格。哪里可以申诉呢?
审核结果出现不会出现的页面,然后说审核不合格。哪里可以申诉呢?
01-02 - 云开发statusCode:430怎么解决?
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"[object Object]","statusCode":430}
2022-09-14 - errCode: -501000 | errMsg: Environment not found?
let db = cloud.database({ env: 'test-5g3jhkcpa3689199', }) 本地调试没有问题,可是传上云后就出现如标题错误!求大神相助
2022-02-17 - 本地调试老是说读写数据库超时,各种解决办法都试过了。怎么解决?好耽误事!
源代码如下: init(db){ this.db = db } async getDocument(colletion,document){ let dd let that = this try { dd = await that.db.collection(colletion).doc(document).get() console.log('读取数据库:集合:' + colletion + ',记录:'+document+'成功:'+dd) return dd.data } catch (e) { console.error('读取数据库错误:' + e + '集合:' + colletion + ',记录:'+document) return undefined } } async setDocument(colletion,document,data){ let dd let that = this try { dd = await that.db.collection(colletion).doc(document).set({data: data}) console.log('修改数据库:集合:' + colletion + ',记录:'+document+'成功:') return dd } catch (e) { console.error(e) console.log('修改数据库错误(集合,记录,数据):', colletion, document,data) return undefined } } async addDocument(colletion,document,data){ let that = this data._id = document try{ await that.db.collection(colletion).add({ //建立currentFlow data: data }) return 'SUCCESS' }catch(e){ console.error(e) console.log('数据库增加数据错误(集合,记录,数据):', colletion, document,data) return 'FAIL' } } } 但是云端都没报错,在本地调试频繁报错: document.get:fail -501001 resource system error. ESOCKETTIMEDOUT Your current request database.getDocument is longer than 3s, it may be due to the network or your query performance | [17e84cdf8bb_31] (anonymous) @ httpRequest.js:133 listOnTimeout @ internal/timers.js:549 processTimers @ internal/timers.js:492 Timeout (async) init @ internal/inspector_async_hook.js:25 emitInitNative @ internal/async_hooks.js:144 emitInitScript @ internal/async_hooks.js:346 initAsyncResource @ internal/timers.js:153 Timeout @ internal/timers.js:186 setTimeout @ timers.js:146 setSlowWarning @ httpRequest.js:128 exports.default @ httpRequest.js:371 send @ dbRequest.js:31 get @ document.js:182 (anonymous) @ index.js:1274 get @ index.js:1270 getDocument @ Database.js:13 _getFromDB @ index.js:162 exports.main @ index.js:85 (anonymous) @ node.js:1 processTicksAndRejections @ internal/process/task_queues.js:97 Promise.then (async) (anonymous) @ node.js:1 emit @ events.js:328 endReadableNT @ _stream_readable.js:1201 processTicksAndRejections @ internal/process/task_queues.js:84 TickObject (async) init @ internal/inspector_async_hook.js:25 emitInitNative @ internal/async_hooks.js:144 emitInitScript @ internal/async_hooks.js:346 nextTick @ internal/process/task_queues.js:135 endReadable @ _stream_readable.js:1190 Readable.read @ _stream_readable.js:420 flow @ _stream_readable.js:979 emitReadable_ @ _stream_readable.js:572 onEofChunk @ _stream_readable.js:536 readableAddChunk @ _stream_readable.js:253 Readable.push @ _stream_readable.js:214 parserOnMessageComplete @ _http_common.js:150 HTTPINCOMINGMESSAGE (async) init @ internal/inspector_async_hook.js:25 emitInitNative @ internal/async_hooks.js:144 connectionListenerInternal @ _http_server.js:423 defaultTriggerAsyncIdScope @ internal/async_hooks.js:313 connectionListener @ _http_server.js:399 emit @ events.js:316 onconnection @ net.js:1558 这些现象之前不频繁出现。直到去年底升级新版本后频繁出现!! 做了以下措施都失败: 1.回退到21年2月份的开发者工具版本; 2.把wx-server-sdk包重新安装 3.把后台响应时间从10秒变成60秒
2022-01-23 - 真机没问题。pc上调试频繁报错,不知道怎么解决?
errCode: -501001 resource system error | errMsg: document.set:fail ESOCKETTIMEDOUT; at document.set api; at returnAsCloudSDKError (d:\Documents\XXX\小程序\XXX\cloudfunctions\getDialog\node_modules\wx-server-sdk\index.js:8013:16) at Object.returnAsFinalCloudSDKError (d:\Documents\XXX\小程序\XXX\cloudfunctions\getDialog\node_modules\wx-server-sdk\index.js:8027:15) at d:\Documents\XXX\小程序\XXX\cloudfunctions\getDialog\node_modules\wx-server-sdk\index.js:1322:32 at processTicksAndRejections (internal/process/task_queues.js:97:5) httpRequest.js:133 Your current request database.modifyDocument is longer than 3s, it may be due to the network or your query performance | [17e753cfb79_4] (anonymous)@httpRequest.js:133listOnTimeout@internal/timers.js:549processTimers@internal/timers.js:492Timeout (async)init@internal/inspector_async_hook.js:25emitInitNative@internal/async_hooks.js:144emitInitScript@internal/async_hooks.js:350initAsyncResource@internal/timers.js:153Timeout@internal/timers.js:186setTimeout@timers.js:144setSlowWarning@httpRequest.js:128exports.default@httpRequest.js:371send@dbRequest.js:31set@document.js:104(anonymous)@index.js:1310set@index.js:1300setDocument@Database.js:25_saveToDB@index.js:210exports.main@index.js:98processTicksAndRejections@internal/process/task_queues.js:97async function (async)exports.main@index.js:85(anonymous)@node.js:1processTicksAndRejections@internal/process/task_queues.js:97Promise.then (async)(anonymous)@node.js:1emit@events.js:315endReadableNT@_stream_readable.js:1201processTicksAndRejections@internal/process/task_queues.js:84TickObject (async)init@internal/inspector_async_hook.js:25emitInitNative@internal/async_hooks.js:144emitInitScript@internal/async_hooks.js:350nextTick@internal/process/task_queues.js:135endReadable@_stream_readable.js:1190Readable.read@_stream_readable.js:420flow@_stream_readable.js:979emitReadable_@_stream_readable.js:572onEofChunk@_stream_readable.js:536readableAddChunk@_stream_readable.js:253Readable.push@_stream_readable.js:214parserOnMessageComplete@_http_common.js:151HTTPINCOMINGMESSAGE (async)init@internal/inspector_async_hook.js:25emitInitNative@internal/async_hooks.js:144connectionListenerInternal@_http_server.js:423defaultTriggerAsyncIdScope@internal/async_hooks.js:313connectionListener@_http_server.js:399emit@events.js:315onconnection@net.js:1556
2022-01-20 - 云函数里云调用出错,不知道怎么解决?请大神帮忙看看
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"callFunction:fail -501001 resource system error. requestID XXXXXXXXXXXXX, Invoking task timed out after 3 seconds\n
2021-05-25 - 云服务调用时出错信息不知怎么处理?
Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID ab8bd0e4-b8a6-11eb-a01d-5254002d4a45, cloud function service error code -504002, error message The "original" argument must be of type function TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function 代码如下:本地调试没有问题,上传到云服务运行出错 // 云函数入口文件 const tencentcloud = require("tencentcloud-sdk-nodejs"); const TtsClient = tencentcloud.tts.v20190823.Client; const clientConfig = { credential: { secretId: "", secretKey: "" }, region: "ap-shanghai", profile: { httpProfile: { endpoint: "tts.tencentcloudapi.com", }, }, }; exports.VoiceOut = { async Speak(role,text) { const client = new TtsClient(clientConfig); let voiceType,speed,volumn voiceType = 101008 speed=-0.5 volumn=0.3 const params = { "Text": text, "SessionId": "abcdef1234567890", "ModelType": 1, "Speed": speed, "VoiceType": voiceType, "Volume": volumn }; let speak = client.TextToVoice(params) return speak } }
2021-05-19 - 关于微信同声传译插件的求解?
用微信同声传译插件 let plugin = requirePlugin("WechatSI") plugin.textToSpeech()正常 但是 let manager = plugin.getRecordRecognitionManager() manager.start() 没有同时使用live-pusher和流式录音接口。 以前可以用,现在会报错:{retcode: -30001, msg: "record manager record failed"} 求解
2021-04-23 - 急,微信同声传译插件错误-30001求解?
用微信同声传译插件 let plugin = requirePlugin("WechatSI") plugin.textToSpeech()正常 但是 let manager = plugin.getRecordRecognitionManager() manager.start() 没有同时使用live-pusher和流式录音接口。 以前可以用,现在会报错:{retcode: -30001, msg: "record manager record failed"} 求解
2021-04-22