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
Do the following steps which might help in troubleshooting the issue:
node modules
and reinstall them again.firebase files
(.firebase, firebase.json)"npm i -g firebase-tools"
"firebase login"
"firebase init hosting"
"firebase deploy --only hosting"
You can also refer to the documentation for further details on Firebase hosting.
I had a (not quite the same but) similar error while trying to deploy firebase functions and hosting in WSL2. I tried to install different firebase-tools versions, and logout then login again, nothing works.
It turns out that the WSL2 DNS issue caused this problem.
So if you're deploying firebase behind WSL2 try this ( credit ):
1. Create a file: /etc/wsl.conf.
2. Put the following lines in the file
[network]
generateResolvConf = false
3. In a cmd window, run wsl --shutdown
4. Restart WSL2
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file.
6. Put the following lines in the file
nameserver 8.8.8.8
If /etc/resolv.conf
is deleted every you restart WSL2, and you're on Windows 11, add these lines to the end of the above /etc/wsl.conf
file.
[boot]
command = "printf 'nameserver 8.8.8.8\nnameserver 4.4.4.4' > /etc/resolv.conf"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.