云開發控制臺存儲報錯?
進入云開發控制臺,
運營分析、數據庫、云函數都可以訪問,
但是點擊進入存儲時,總是提示:
數據加載失敗
4 分鐘前
加載 “cosListBucket” 失敗:{"error":"error","headers":{}}
之前是存了一張圖片在里面,
然后通過:
upload:?function() {
// 選擇圖片
wx.chooseImage({
count:?1,
sizeType: ['original',?'compressed'],
sourceType: ['album',?'camera'],
success(res) {
// tempFilePath可以作為img標簽的src屬性顯示圖片
const?tempFilePaths = res.tempFilePaths
console.log(tempFilePaths)
wx.cloud.uploadFile({
cloudPath:?'example.png',?// 上傳至云端的路徑
filePath: tempFilePaths[0],?// 小程序臨時文件路徑
success: res => {
// 返回文件 ID
console.log(res.fileID)
db.collection('image').add({
data: {
fileID: res.fileID
}.then(res => {
console.log(res)
}).catch(err => {
console.erroe(err)
})
})
},
fail: console.error
})
}
})
},
運行選擇一張圖片后就一直提示錯誤,刷新不出來了!
2020-03-04
請再試一次,現在還是出現這種情況嗎
2020-03-04
域名網絡不行,家庭網絡可以了
2020-03-04