- 云存储中图片渲染层错误,500报错,怎么及解决?
[渲染层网络层错误] Failed to load local image resource /pages/show/cloud://houseingdata-7ggq2ok57d075998.686f-houseingdata-7ggq2ok57d075998-1318385593/FinalHousingData/%E4%B8%89%E6%B1%9F%E6%98%8E%E6%9C%88/1661307736059610=.png the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error) (env: Windows,mp,1.06.2305262; lib: 2.32.1) 手动向云存储中上传图片,可以根据fileid加载出图片,但是使用python代码用request的post上传,fileid一样,可以云存储预览,但是就是不能再wxml中加载出来,什么问题,直接写src=‘fileid’也不能加载出来
2023-06-06 - 云函数报错504002,SyntaxError怎么解决?
本地调试没问题,部署云端使用就出错了[图片] 云函数代码: const CloudBase = require('@cloudbase/manager-node'); const { storage } = new CloudBase({ envId: '################' }); // 云函数入口函数 exports.main = async (event, context) => { const keyword = event.keyword const folderpath = 'FinalHousingData/'+keyword console.log(keyword) console.log(folderpath) if(keyword === '') { return { data:[ { keyword: '', data: [], } ] }; }else { try { const res = await storage.listDirectoryFiles(folderpath); console.log(res); // 云存储文件列表集合 return { data:[ { keyword: keyword, data: res, } ] }; } catch (err) { console.error(err); throw new Error('搜索失败'); } } };
2023-05-27