上傳到云開發上了為啥一直報錯,在云上測試接口是訪問成功的
VM124:1 err Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -501005, error message Environment not found; at cloud.callFunction api;?
? ? at new t (WAService.js:22)
? ? at o (WAService.js:22)
? ? at Object.i [as returnAsFinalCloudSDKError] (WAService.js:22)
? ? at Function.success (WAService.js:21)
? ? at Object.success (WAService.js:4)
? ? at L.<anonymous> (WAService.js:7)
? ? at L.emit (WAService.js:8)
? ? at Function.<anonymous> (WAService.js:12)
? ? at WAService.js:6
? ? at n (appservice?t=1564039515459:4060)
2019-07-26
檢查下app.js中是否配置云環境id。
在云開發控制臺中查看云環境id,然后在app.js當中配置云環境id:
2019-07-25
原來是要在這邊配置環境id的??
2019-07-25
希望老師幫我看下? 謝謝了~~