Android Flatter Firebase存储错误所需参考处不存在任何对象
每次运行getDownloadURL时,我都会遇到这个错误,我一直说这个位置不存在对象,但我添加了要下载的图像 根目录和文件扩展名是正确的,我不知道我做错了什么 下面是全部错误Android Flatter Firebase存储错误所需参考处不存在任何对象,android,firebase,flutter,dart,google-cloud-firestore,Android,Firebase,Flutter,Dart,Google Cloud Firestore,每次运行getDownloadURL时,我都会遇到这个错误,我一直说这个位置不存在对象,但我添加了要下载的图像 根目录和文件扩展名是正确的,我不知道我做错了什么 下面是全部错误 I/flutter (23569): here is your url https://firebasestorage.googleapis.com/v0/b/posweepay.appspot.com/o/cables.jpg?alt=media&token=829a25e4-becd-416f-9b01-34
I/flutter (23569): here is your url https://firebasestorage.googleapis.com/v0/b/posweepay.appspot.com/o/cables.jpg?alt=media&token=829a25e4-becd-416f-9b01-3498a3e79546
I/flutter (23569): found data on cloudstore Instance of '_MapStream<QuerySnapshotPlatform, QuerySnapshot>'
E/StorageException(23569): StorageException has occurred.
E/StorageException(23569): Object does not exist at location.
E/StorageException(23569): Code: -13010 HttpResult: 404
E/StorageException(23569): { "error": { "code": 404, "message": "Not Found. Could not get object", "status": "GET_OBJECT" }}
E/StorageException(23569): java.io.IOException: { "error": { "code": 404, "message": "Not Found. Could not get object", "status": "GET_OBJECT" }}
E/StorageException(23569): at com.google.firebase.storage.network.NetworkRequest.parseResponse(NetworkRequest.java:434)
E/StorageException(23569): at com.google.firebase.storage.network.NetworkRequest.parseErrorResponse(NetworkRequest.java:451)
E/StorageException(23569): at com.google.firebase.storage.network.NetworkRequest.processResponseStream(NetworkRequest.java:442)
E/StorageException(23569): at com.google.firebase.storage.network.NetworkRequest.performRequest(NetworkRequest.java:272)
E/StorageException(23569): at com.google.firebase.storage.network.NetworkRequest.performRequest(NetworkRequest.java:286)
E/StorageException(23569): at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(ExponentialBackoffSender.java:70)
E/StorageException(23569): at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(ExponentialBackoffSender.java:62)
E/StorageException(23569): at com.google.firebase.storage.GetDownloadUrlTask.run(GetDownloadUrlTask.java:76)
E/StorageException(23569): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
E/StorageException(23569): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
这是我的规则
1
service firebase.storage {
2
match /b/{bucket}/o {
3
match /{allPaths=**} {
4
allow read, write;
5
}
6
}
7
}
8
`/cables.jpg'不存在,或者您必须查看您设置的规则IV将我的规则添加到问题中您确定该文件存在吗?我在问题中添加了更多信息,我已拍摄了我的存储的屏幕截图,向您显示该文件存在,我的代码打印出URL,该URL过去存在,但仍然表示fle不存在,我不明白打印时URL中的duuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu?你每次打印url都会得到相同的结果吗?
1
service firebase.storage {
2
match /b/{bucket}/o {
3
match /{allPaths=**} {
4
allow read, write;
5
}
6
}
7
}
8