-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error in firebase_functions/private/util.py processing event time attribute #136
Comments
It's worth noting that downgrading tl;dr fix this bug by running: Firebase staff - please consider adding an integration test that covers |
Thanks for sharing. |
I have the same issue, but running I followed the official tutorial to the letter and encountered this issue, so it seems to be quite a big oversight from the firebase team. EDIT: I had installed firebase tools from the bash script, had to uninstall it, install this specific npm version, and the issue is now fixed. Official tutorial is still broken though. |
Same issue for me using the latest firebase.tools. Using 12.5.3 via npm for now until the issue is resolved. Also, I'd recommend some better docs on "installing" a specific version binary from the firebase.tools website. |
Snce this issue has been fixed, I'll close this issue. Please comment if you disagree with my decision |
This is still an issue in the latest version, this issue shouldn't be closed. |
Yeah, this is the 2nd recent issue @exaby73 has closed that hasn't actually been fixed. |
@jackall3n @joaqo Sorry about this. I realise that the workaround was downgrading the firebase_tools version. Correct me if I am wrong. I'll reopen this issue and investigate further |
+1 this issue still happens and if not for this thread it would have been very difficult for me to resolve. I spent ~1 hour fruitlessly playing around with versions of various components before finding this. |
+1 this issue still exists |
Could you please check with the latest version |
I just tried it with firebase-tools v13.3.0 and it still fails. |
Hey @antopolskiy if you can still reproduce it, could you provide me with your stack trace? |
After updating firebase-tools, using the functions emulator, any time an
@firestore_fn
-decorated function is executed, I get this error:The relevant code includes this block from firebase_fn.py and this block from private/util.py.
After upgrading to the latest firebase tools
npm install -g firebase-tools
tov12.5.4
, the CloudEvent event's time attribute has this iso format:2023-09-16T13:32:06Z
extracted by adding a print() call to the firebase_functions' site-package source.So, that unprotected
time.split('.')
call isn't accounting for the ostensible change to the time attribute's format.I'm using Python 3.11.4 on macOS 12.6 with firebase-functions v0.1.1 (latest).
The text was updated successfully, but these errors were encountered: