-
Notifications
You must be signed in to change notification settings - Fork 373
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 remote config get template api fails throws "Version update time must be a valid date string" #1088
Comments
I found a few problems with this issue:
|
I am also facing the same issue |
Experiencing same issue cant get remote config values in my cloud functions. |
We also facing this one since today. |
Same here |
I'm also facing the same problem, I've debugging like crazy the past few hours until I found this issue. For me, the parameter was added no longer than the past few hours. And the command admin.remoteConfig().getTemplate() Will fail with the same error described in the issue. I've also tried downgrading |
Seeing this issue today as well |
Same here, issue appeared overnight with no code changes or even npm update |
Same issue here. Appeared overnight with no code changes. Tried all I can think of but still fails when hitting this line "admin.remoteConfig().getTemplate();" Only thing I did for it to start failing is add a new Remote Config setting as described. |
Happening to us as well. just started today |
Same issue here. Stack trace: PrefixedFirebaseError: Version update time must be a valid date string |
I noticed that the problem seems to be related to the number of places used for the milliseconds The code falling is this one:
The |
Thank you for reporting this issue! |
The issue is happening because of isISODateString check |
Yes, that is exactly the case. |
I very much appreciate how quickly this was fixed! You developers are amazing ❤️ I see that the fix was merged, are you going to publish a new release of the firebase-admin npm? The latest is still 9.4.0, and this issue was closed. |
Yes, it's on the way. We are also following up with the backend team to figure out why the date format changed suddenly (and will continue to do so after the release too). |
Thank you so much. You all rock! 👍 |
Thank you everyone for your patience! We have included the fix in |
I am still facing this issue.
|
@ajayagrawal Thank you for letting us know. The initial issue should now be fixed in v9.4.1. If you are still seeing this issue, could you please provide us with more details? Do you see the above error when performing a specific operation? |
Hi. I appreciate how fast this was solved. |
@DavidMGini Unfortunately, you have to update |
Updated - error went away immediately. |
@lahirumaramba I am using the remote config fetch function as mention here:https://firebase.google.com/docs/remote-config/automate-rc and getting this error. The complete error is as below: |
@ajayagrawal Your |
@lahirumaramba now it's working thanks for the help. |
Contains a fix for firebase#1088
Issue is reproducible in Firebase cloud function and in the local cloud function simulator(started occurring from 13-nov-2020)
Firebase node admin api "admin.remoteConfig().getTemplate() or config.getTemplateAtVersion" throws error
The issue is reproducible for all remote config versions updated today(using firebase ui or rest api).
Older remote config versions can be fetched.
Steps to reproduce:
update a remote config api using firebase ui.
get the template using the admin api
additional information
The version details of today's config(which doesn't work) look like
Version details of old remote config (which work)
You can see the time format is different for new and old remote config. I guess that's the reason why api is failing
The text was updated successfully, but these errors were encountered: