Skip to content
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

An error when running "firebase remoteconfig:get" with no version #5497

Closed
yuvalyellin opened this issue Feb 9, 2023 · 2 comments
Closed

Comments

@yuvalyellin
Copy link

[REQUIRED] Environment info

9.23.1

macOS

[REQUIRED] Test case

When -v is not supplied, an error occurs

[REQUIRED] Steps to reproduce

firebase remoteconfig:get -o template1.json

[REQUIRED] Expected behavior

latest version should be saved when no version is supplied

[REQUIRED] Actual behavior

[2023-02-09T17:22:07.035Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2023-02-09T17:22:07.036Z] > authorizing via signed-in user ()
[2023-02-09T17:22:07.037Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2023-02-09T17:22:07.037Z] > authorizing via signed-in user (
)
[2023-02-09T17:22:07.037Z] [iam] checking project pangea-stage for permissions ["cloudconfig.configs.get","firebase.projects.get"]
[2023-02-09T17:22:07.047Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/***:testIamPermissions
{"permissions":["cloudconfig.configs.get","firebase.projects.get"]}
[2023-02-09T17:22:08.541Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Thu, 09 Feb 2023 17:22:08 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=857","alt-svc":"h3=":443"; ma=2592000,h3-29=":443"; ma=2592000","accept-ranges":"none","transfer-encoding":"chunked"}
[2023-02-09T17:22:08.758Z] AssertionError [ERR_ASSERTION]: expected "string" but got "undefined"
at new AssertionError (node:internal/assert/assertion_error:466:5)
at Object.assertIsString (/Users//.npm-packages/lib/node_modules/firebase-tools/lib/utils.js:368:15)
at Command.actionFn (/Users//.npm-packages/lib/node_modules/firebase-tools/lib/commands/remoteconfig-get.js:29:11)
at /Users//.npm-packages/lib/node_modules/firebase-tools/lib/command.js:190:25
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: An unexpected error has occurred.

@aalej
Copy link
Contributor

aalej commented Feb 10, 2023

Hi @yuvalyellin, thanks for filing this issue. I tried running the firebase remoteconfig:get -o template1.json command without passing the -v option and I did not encounter any errors.

I noticed that you mentioned 9.23.1. Just to verify, are you using firebase-tools v9.23.1? If you are, could you try updating to the latest version of firebase-tools, which is currently v11.22.0, to see if that would fix the issue? Also, there was previously this similar issue #3559 which was fixed in firebase-tools v9.23.2.

@aalej aalej added the Needs: Author Feedback Issues awaiting author feedback label Feb 10, 2023
@yuvalyellin
Copy link
Author

It is working in the latest version,
I am not sure why it didn't ask me to upgrade the package like it used to, but after upgrading it works,
Thank you.

@google-oss-bot google-oss-bot added Needs: Attention and removed Needs: Author Feedback Issues awaiting author feedback labels Feb 10, 2023
@aalej aalej closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants