'Timeout on deploying firebase files

I have a simple static HTML and CSS website, a total of 19 files, when I use firebase deploy for the first time it uploads all files except 3 (which I don't know what are they), and then I use firebase deploy again and I get this error with a timeout

Error: Task 746db75fe2e30f7db8e598da508ea0151037c4fa9ee122daec252dc18fbb8662 failed: retries exhausted after 6 attempts, with error: Timeout reached making request to https://upload-firebasehosting.googleapis.com/upload/sites/xxxx/versions/0e578bbd3fa0f905/files/746db75fe2e30f7db8e598da508ea0151037c4fa9ee122daec252dc18fbb8662

My version of firebase is 10.0.1
My Node version is 17.3.0



Solution 1:[1]

Do the following steps which might help in troubleshooting the issue :

  • Delete node modules and reinstall them again.
  • Delete firebase files (.firebase, firebase.json)
  • Update Firebase CLI via "npm i -g firebase-tools"
  • Log in to your account via "firebase login"
  • Initialize the project via "firebase init hosting"
  • And lastly deploy it via "firebase deploy --only hosting"

You can also refer to the documentation for further details on Firebase hosting.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Divyani Yadav