【问题标题】:Getting W/NetworkRequest: error sending network request POST when working with Firebase Storage获取 W/NetworkRequest:使用 Firebase 存储时发送网络请求 POST 时出错
【发布时间】: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


    【解决方案1】:

    当我尝试通过移动数据访问“Firebase 存储”时遇到同样的问题。 (来自孟加拉国)。然后我通过宽带互联网连接进行了尝试,一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多