Search code examples
firebasefirebase-hosting

How to Avoid Timeout Error on Firebase Hosting Deploy


Sometimes I use slow internet connections to deploy to firebase hosting.

They end up with this error:

Task XXX failed: retries exhausted after 6 attempts

It is possible to extend the connection timeout? And/or the number of retries?

Thank you


Solution

  • No, this is not possible at present.

    However, you can open an issue in the firebase-tools GitHub repo, explaining your problem and requesting this functionality: https://github.com/firebase/firebase-tools

    Edit: workarounds

    User @example had an interesting work around in a comment (paraphrased):

    connect to a remote computer to do all the internet heavy tasks like deploying things. 1. Change code locally, 2. push to your git, then 3. pull, it in your remote computer and 4. deploy. 1, 2, 3 are low data, and the remote handles 4., the high-data task

    And as an alternative, you could set up a GitHub action to deploy on push to master: here's a post describing that workflow https://fireship.io/snippets/github-actions-deploy-angular-to-firebase-hosting/