When you try to deploy firebase function but got the error with text
Error: HTTP Error: 400, Request contains an invalid argument.
Run
firebase list
and check that Project ID is correct because some of the manuals describe the project name as the Project ID but is not correct