问答详情
源自:4-3 电影列表

上传到云开发上了为啥一直报错,在云上测试接口是访问成功的

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)

https://img2.mukewang.com/5d3959f90001a67411940730.jpg

    at Function.<anonymous> (WAService.js:12)

    at WAService.js:6

    at n (appservice?t=1564039515459:4060)

https://img.mukewang.com/5d395b9400019fd218860909.jpg

https://img.mukewang.com/5d395baa0001c7b818630827.jpg

提问者:qq_Sevenyears_03841917 2019-07-25 15:28

个回答

  • 谢成
    2019-07-26 15:39:42

    检查下app.js中是否配置云环境id。


    在云开发控制台中查看云环境id,然后在app.js当中配置云环境id:

    https://img1.mukewang.com/5d1c55e70001e79025461086.jpg


    https://img2.mukewang.com/5d1c560400011d6216900846.jpg


  • qq_Sevenyears_03841917
    2019-07-25 15:39:20

    原来是要在这边配置环境id的  https://img2.mukewang.com/5d395ca40001cb4d07640336.jpg

  • qq_Sevenyears_03841917
    2019-07-25 15:35:37


    希望老师帮我看下  谢谢了~~

    https://img.mukewang.com/5d395b9400019fd218860909.jpg

    https://img.mukewang.com/5d395baa0001c7b818630827.jpg