【发布时间】:2020-08-03 20:12:31
【问题描述】:
问题是当
I try to upload an image to firebase storage sometimes it successfully uploads the image but most of the time it keep saying
*****/com.example.firebasestoragedemo W/NetworkRequest: error sending network request POST https://firebasestorage.googleapis.com/*myproject_name/some_more_extension.
when I enter to this link I found
{
"error": {
"code": 403,
"message": "Permission denied. Could not perform this operation"
}
}
but I have enabled signInWithEmailAndPassword in my onStart(){...} function and my security rule is here
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write : if request.auth != null;
}
}
}*****
这两个例外我得到..
java.net.ConnectException:无法连接到 firebasestorage.googleapis.com/.... javax.net.ssl.SSLHandshakeException:SSL 握手中止:ssl=0xe096ebb8:系统调用期间的 I/O 错误,对等方重置连接
我的代码确实是最新的,否则有时它无法工作。我认为问题可能出在 Firebase 的其他地方。
请帮帮我。如果您尝试提供帮助,那将是非常高兴的。 谢谢
【问题讨论】:
标签: firebase android-studio firebase-realtime-database firebase-authentication firebase-storage