-
Notifications
You must be signed in to change notification settings - Fork 971
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
Issue with Firebase Config set on Object<Strings> #378
Comments
What CLI version, and what platform are you using? |
firebase CLI 3.9.1 (node v6.10.3) on windows. |
Can you try:
I believe Windows requires double quotes to interpret something as a JSON, otherwise it will interpret it as a string. Can you let me know if the above commands work? |
I don't think so, I even tried that. Here is my JSON.
"{\"brandName\":\"Me\",\"brandTitle\":\"Me\",\"brandLogo\":\"\",\"brandLogo1\":\"\",\"brandFavicon\":\"\",\"brandColor\":\"\",\"brandColor2\":\"\",\"brandFooterText\":\"\",\"appName\":\"\",\"appVersion\":\"\",\"appDbConnStr\":\"\",\"appDeploy\":[\"combined\",\"mobileReady\"],\"appClientURL\":\"\",\"appServerURL\":\"\",\"appSSLEnabled\":\"\",\"appAuthGoogleURL\":\"\",\"appAuthGoogleCallbackURL\":\"\",\"appAuthGoogleKey\":\"\",\"appAuthGoogleSecret\":\"\",\"appAuthMSURL\":\"\",\"appAuthMSCallbackURL\":\"\",\"appAuthMSKey\":\"\",\"appAuthMSSecret\":\"\",\"appStorageURL\":\"\",\"appStorageFolderPath\":\"\",\"appStorageKey\":\"\",\"appStorageSecret\":\"\",\"appFileConversionURL\":\"\",\"appFileConversionKey\":\"\",\"appFileConversionSecret\":\"\",\"appSubscriptionType\":[\"individual\",\"collaboration\"],\"appSubscriptionCollaboration\":[\"2\",\"5\",\"10\",\"open\"],\"appSubscriptionDecks\":[\"2\",\"5\",\"10\",\"open\"],\"appSubscriptionQuestionSize\":[\"5\",\"10\",\"25\",\"open\"],\"appSubscriptionGroupSize\":[\"10\",\"50\",\"100\",\"500\"],\"appSubscriptionParticipationSize\":[\"10\",\"50\",\"100\",\"500\",\"1000\",\"5000\",\"open\"]}"
…On Tue, Jun 27, 2017 at 4:49 PM, Lauren Long ***@***.***> wrote:
Can you try:
firebase functions:config:set foo.bar="{\"test\":\"12\",\"next\":45}"
or
firebase functions:config:set foo.bar.test=12
firebase functions:config:set foo.bar.next=45
I believe Windows requires double quotes to interpret something as a JSON,
otherwise it will interpret it as a string. Can you let me know if the
above commands work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#378 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKgWdoVr-b5taD5jexIszxGs3MDDcpSRks5sIOVKgaJpZM4OFCz8>
.
--
*Thanks,*
*Krishna Chaitanya.*
|
Thanks for letting me know, will investigate. |
(This doesn't look like it was resolved, but may still be an issue when setting values as JSON strings. Should be investigated. Help is welcome from the community 😄) |
it looks like it may be related to #371 as well |
@taeold One more to check for the 'env:*' commands |
I'd surround things with ANSI-C Quote: $ firebase functions:config:set foo.bar.car=$'"{"test":"12","next":45}"'
✔ Functions config updated.
$ firebase functions:config:get foo.bar.car
"\"{\"test\":\"12\",\"next\":45}\"" This is a dup of #371. |
When we try to set config with Object firebase functions:config:set foo.bar='{"test":"12","next":45}'
This is how we get value when we try to read it
firebase functions:config:get foo.bar :: "'{test:12,next:45}'"
Have seen in issues that this has been fixed but we still do get this error.
The text was updated successfully, but these errors were encountered: