问题
As said in the title, when I was deploying my functions, some of the functions failed with errors that look like the following:
Build failed: {"cacheStats": [{"status": "MISS", "hash": "083901f592ca8770578aa2725fb28aea8db1997e505ec0d1825e328934e5ab87", "type": "docker_layer_cache", "level": "global"}, {"status": "HIT", "hash": "083901f592ca8770578aa2725fb28aea8db1997e505ec0d1825e328934e5ab87", "type": "docker_layer_cache", "level": "project"}]}
I was able to deploy those failed functions in the past without any problems, and I didn't change the code at all. And the weirdest thing is, I tried to re-deploy the failed functions several times, they would eventually be deployed.
The firebase-tools, firebase-functions and firebase-admin packages are updated to the date. I've tried to revert my code version as well as google the error, but nothing helps. Could someone tell me what the error means and how to deal with it please?
Thanks in advance!
回答1:
Most likely cause is the outage that started a few hours ago (January 7th. 2020), affecting several Cloud Function deployments with errors such as Build failed and INVALID_ARGUMENT. Engineering is aware and they're working on it. If you're unsure or wish to stay up to date on it, contact support.
来源:https://stackoverflow.com/questions/59631502/cannot-deploy-functions-to-firebase