-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When deploying cloud function with 10.7.0, getting HTTP Error: 400, Invalid JSON payload received. Unknown name "skipLog": Cannot find field. #4465
Comments
Hi @countzyx thanks for opening your first issue here! To figure out what's going on, can I ask you to re-run the deploy command with the debug flag and paste the output here?
Thanks! |
The options we were including to suppresses superfluously log entries whenever we enable GCP API were being sent as payload to the POST request. Fixes #4465
I have encoutntered the exact same issue already in: I have tried different versions (10.6.0, 10.7.0, 10.7,1, 10.8.0, Latest version) but none of them worked. here is the debug output: === Functions Setup |
@Tal-Idan can you open a new issue for this? You're hitting the issue in a new place, it looks like, in the init command rather than deploy. I can't replicate this off hand, so we'll need to know more of the options you're selecting when initializing functions. Thanks |
[REQUIRED] Environment info
firebase-tools: 10.7.0
Platform: macOS 12.3.1 arm64
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
firebase deploy --only functions
[REQUIRED] Expected behavior
Something like this -
[REQUIRED] Actual behavior
I noticed that the src/ensureApiEnabled.ts was modified to include the
{ skipLog: { resBody: true } }
payload in thecheck
andenable
functions, which the Firebase API is rejecting (at least inenable
). Is the solution to use 10.6.0 for now?The actual project is set to Blaze - Pay As You Go.
The text was updated successfully, but these errors were encountered: