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

Firebase RemoteConfig generates invalid JSON with the rollout feature #7311

Open
unxavi opened this issue Jun 12, 2024 · 3 comments
Open

Firebase RemoteConfig generates invalid JSON with the rollout feature #7311

unxavi opened this issue Jun 12, 2024 · 3 comments

Comments

@unxavi
Copy link

unxavi commented Jun 12, 2024

[REQUIRED] Environment info

firebase-tools: 13.11.2

Platform: macOS/Ubuntu

[REQUIRED] Test case

Create a feature flag with a rollout plan, download the JSON and try to upload this JSON to another project weather on the Web Console or using the firebase tools command line, it fails and says that the json is not a valid remote config json.

Error: HTTP Error: 400, [VALIDATION_ERROR]: INVALID_ROLLOUT_PARAM_VALUE The template has an invalid rollout id : rollout_4

[REQUIRED] Steps to reproduce

Create a feature flag with a rollout plan, download the JSON and try to upload this JSON to another project weather on the Web Console or using the firebase tools command line, it fails and says that the json is not a valid remote config json.

[REQUIRED] Expected behavior

The configuration should be created for the feature flags with the rollout plan

[REQUIRED] Actual behavior

The import fails

@aalej
Copy link
Contributor

aalej commented Jun 12, 2024

Hey @unxavi, thanks for reporting. I’m able to reproduce the issue you mentioned. When using the rollouts feature and trying to upload the Remote Config JSON template to different project, an error is being raised. I’ll raise this to our engineering team.

@unxavi
Copy link
Author

unxavi commented Jun 12, 2024

@aalej thanks, a perfect use case is when you have different firebase environments (dev, stage, pro) for example. Another thing that I notice is that the json doesn't contain the rollout name nor description, so that's never going to be recreated as it if deleted

@Davtyanag
Copy link

[
js-example.zip
](url)

hi guys, I have same issue, I've attached js file which has transfers from one project to another and issue
message: '[VALIDATION_ERROR]: INVALID_ROLLOUT_PARAM_VALUE The template has an invalid rollout id : rollout_11'
},
arises. Thanks

@joehan joehan assigned rebehe and unassigned rebehe Jun 25, 2024
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

4 participants