firebase / firebase-tools

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

[Feature Request] More details about deployment errors #1855

Open its-dibo opened 4 years ago

its-dibo commented 4 years ago

many time I get error messages when I'm trying to deploy my app to Firebase using Firebase cli, but I cannot figure out the reason of these errors and how to fix them.

so, please provide us a link of more details about this error, and tell us what exactly causes this error.

as an example, I faced this error Failed to verify the provided Cloud Storage Signed URL but there is no way to know what exactly caused this error, and what can I do for my app to deploy correctly.

samtstern commented 4 years ago

Related: https://github.com/firebase/firebase-tools/issues/1856

wceolin commented 4 years ago

We also don't have a proper error message when a module is missing. For example, when deploying Cloud Functions firebase deploy --only functions, a dependency was missing on my package.json. A got the following error:

Error setting up the execution environment for your function. Please try deploying again after a few minutes.

Because it was asking me to try again after a few minutes, I thought it could be a network issue. However, after a couple of days failing to deploy any functions, I've decided to go to the GCP console and view the logs. Only there I found out the error was caused by a missing dependency: Cannot find module xxx.

Ideally, that error message should be displayed in the CLI when that error occurs.