firebase / firebase-tools

The Firebase Command Line Tools
MIT License
4.02k stars 934 forks source link

Error While deploying with firebase-cli #3966

Closed ALWISHARIFF closed 2 years ago

ALWISHARIFF commented 2 years ago

[REQUIRED] Environment info

[debug] [2021-12-21T09:33:59.013Z] CLI Version: 9.22.0 [debug] [2021-12-21T09:33:59.013Z] Platform: win32 [debug] [2021-12-21T09:33:59.013Z] Node Version: v14.17.6

firebase-tools:

Platform: Windows

[REQUIRED] Test case

FILE TREE STRUCTURE

.
|-- ./TODO
|-- ./common
|   |-- ./common/dist
|   |-- ./common/node_modules
|   |-- ./common/package.json
|   |-- ./common/src
|   `-- ./common/webpack.config.js
|-- ./config.json
|-- ./database-rules.json
|-- ./direc_tree.txt
|-- ./firebase-debug.log
|-- ./firebase.json
|-- ./functions
|   |-- ./functions/common
|   |-- ./functions/google-apis
|   |-- ./functions/index.js
|   |-- ./functions/json
|   |-- ./functions/languages
|   |-- ./functions/node_modules
|   |-- ./functions/package.json
|   `-- ./functions/providers
|-- ./mobile-app
|   |-- ./mobile-app/App.js
|   |-- ./mobile-app/AppCommon.js
|   |-- ./mobile-app/GoogleService-Info.plist
|   |-- ./mobile-app/__generated__
|   |-- ./mobile-app/app.config.js
|   |-- ./mobile-app/assets
|   |-- ./mobile-app/babel.config.js
|   |-- ./mobile-app/config
|   |-- ./mobile-app/google-services.json
|   |-- ./mobile-app/metro.config.js
|   |-- ./mobile-app/node_modules
|   |-- ./mobile-app/package.json
|   `-- ./mobile-app/src
|-- ./node_modules

|-- ./package.json
|-- ./patches
|   |-- ./patches/moment+2.29.1.patch
|   `-- ./patches/react-navigation-drawer+2.7.1.patch
|-- ./storage.rules
|-- ./web-app
|   |-- ./web-app/build
|   |-- ./web-app/jsconfig.json
|   |-- ./web-app/node_modules
|   |-- ./web-app/package.json
|   |-- ./web-app/public
|   `-- ./web-app/src
|-- ./yarn-error.log
`-- ./yarn.lock

FIREBASE.json

  "database": {
    "rules": "database-rules.json"
  },
  "storage": {
    "rules": "storage.rules"
  },
  "hosting": {
    "public": "web-app/build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      { "source": "/", "destination": "/index.html" },
      { "source": "/dashboard", "destination": "/index.html" },
      { "source": "/bookings", "destination": "/index.html" },
      { "source": "/profile", "destination": "/index.html" },
      { "source": "/cartypes", "destination": "/index.html" },
      { "source": "/cancelreasons", "destination": "/index.html" },
      { "source": "/promos", "destination": "/index.html" },
      { "source": "/riders", "destination": "/index.html" },
      { "source": "/drivers", "destination": "/index.html" },
      { "source": "/fleetadmins", "destination": "/index.html" },
      { "source": "/driverearning", "destination": "/index.html" },
      { "source": "/notifications", "destination": "/index.html" },
      { "source": "/earningreports", "destination": "/index.html" },
      { "source": "/addtowallet", "destination": "/index.html" },
      { "source": "/withdraws", "destination": "/index.html" },
      { "source": "/settings", "destination": "/index.html" },
      { "source": "/about-us", "destination": "/index.html" },
      { "source": "/privacy-policy", "destination": "/index.html" },
      { "source": "/register", "destination": "/index.html" },
      { "source": "/login", "destination": "/index.html" },
      { "source": "/getHtml", "function": "getHtml"},
      { "source": "/setup", "function": "setup" },
      { "source": "/get_providers", "function": "get_providers"},
      { "source": "/get_languages", "function": "get_languages" },
      { "source": "/send_notification", "function": "send_notification"},
      { "source": "/check_user_exists", "function": "check_user_exists" },
      { "source": "/validate_referrer", "function": "validate_referrer"},
      { "source": "/user_signup", "function": "user_signup" },
      { "source": "/success", "function": "success"},
      { "source": "/cancel", "function": "cancel" },
      { "source": "/braintree-link", "function": "braintree-link" },
      { "source": "/braintree-process", "function": "braintree-process"},
      { "source": "/mpesa-link", "function": "mpesa-link" },
      { "source": "/mpesa-process", "function": "mpesa-process"},
      { "source": "/culqi-link", "function": "culqi-link" },
      { "source": "/culqi-process", "function": "culqi-process"},
      { "source": "/flutterwave-link", "function": "flutterwave-link" },
      { "source": "/flutterwave-process", "function": "flutterwave-process"},
      { "source": "/liqpay-link", "function": "liqpay-link" },
      { "source": "/liqpay-process", "function": "liqpay-process"},
      { "source": "/payfast-link", "function": "payfast-link" },
      { "source": "/payfast-process", "function": "payfast-process"},
      { "source": "/paypal-link", "function": "paypal-link" },
      { "source": "/paypal-process", "function": "paypal-process"},
      { "source": "/paystack-link", "function": "paystack-link" },
      { "source": "/paystack-process", "function": "paystack-process"},
      { "source": "/paytm-link", "function": "paytm-link" },
      { "source": "/paytm-process", "function": "paytm-process"},
      { "source": "/payulatam-link", "function": "payulatam-link" },
      { "source": "/payulatam-process", "function": "payulatam-process"},
      { "source": "/securepay-link", "function": "securepay-link" },
      { "source": "/securepay-process", "function": "securepay-process"},
      { "source": "/stripe-link", "function": "stripe-link" },
      { "source": "/stripe-process", "function": "stripe-process"},
      { "source": "/mercadopago-link", "function": "mercadopago-link" },
      { "source": "/mercadopago-process", "function": "mercadopago-process"},
      { "source": "/googleapis-autocomplete", "function": "googleapis-autocomplete"},
      { "source": "/googleapis-getcoords", "function": "googleapis-getcoords"},
      { "source": "/googleapis-getaddress", "function": "googleapis-getaddress"},
      { "source": "/googleapis-getroute", "function": "googleapis-getroute"},
      { "source": "/googleapis-getdrivetime", "function": "googleapis-getdrivetime"},
      { "source": "/googleapis-getmultiloctime", "function": "googleapis-getmultiloctime"},
      { "source": "/test-link", "function": "test-link" },
      { "source": "/test-process", "function": "test-process"}
    ]
  },
  "functions": {
    "predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint"
    ]
  }
}

[REQUIRED] Steps to reproduce

Run Firebase deploy on my project but i am getting a docker error from the debug logs [debug] [2021-12-21T09:38:08.996Z] Failed docker command with error Timeout {}

[REQUIRED] Expected behavior

The firebase deploy command should deploy the files but ivving me an error

[REQUIRED] Actual behavior

The debug logs is attached

firebase-debug.log

ALWISHARIFF commented 2 years ago

Looks like my isp has blocked firebase api i tried with a different and faster connection and it worked