Firebase Authentication FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred

后端 未结 17 1643
感情败类
感情败类 2020-12-06 04:55

I\'m creating an authentication workflow for my android app. I\'m allowing users to sign in with username/password and various OAuth providers. I\'m validating emails and pa

17条回答
  •  春和景丽
    2020-12-06 05:23

    Check your rewrites in firebase.json, make sure you don't rewrite auth provider url /__/

    {
      "database": {
        "rules": "database.rules.json"
      },
      "storage": {
        "rules": "storage.rules"
      },
      "hosting": {
        "public": "public",
        "rewrites": [
          {
            "source": "!/__/**",
            "destination": "/index.html"
          },
          {
            "source": "**/!(*.js|*.html|*.css|*.json|*.svg|*.png|*.jpg|*.jpeg)",
            "destination": "/index.html"
          }
        ]
      }
    }
    

    Also it could be service worker problem. See https://github.com/Polymer/polymer-cli/issues/290

提交回复
热议问题