You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
google.api_core.exceptions.NotFound: 404 No document to update: projects/{project_name}/databases/(default)/documents/{collection_name}/H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_ä¸é¤�"
Notes
The issue could be that the string "H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_中餐" is being converted into "H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_\344\270\255\351\244\220" inside the event.data.after.reference.update function. Notably, the part "\344\270\255\351\244\220" is an octal representation of the UTF-8 encoding for 中餐. To convert it, each octal sequence (e.g. \344) can be converted into hexadecimal to get \xe4\xb8\xad\xe9\xa4\x90 which is the UTF-8 byte sequence for 中餐.
An issue was created for this in firebase-functions-python #220, but I believe this is an issue with this project, so I'm creating an issue here.
Issue
My document id:
H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_中餐The last two characters are Chinese characters.
Relevant code:
event.data.after.reference.update()(here)Error message:
google.api_core.exceptions.NotFound: 404 No document to update: projects/{project_name}/databases/(default)/documents/{collection_name}/H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_ä¸é¤�"
Notes
The issue could be that the string
"H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_中餐"is being converted into"H67iEkcHx6Nicg5eoZbmxARLyJo2_KoX4bc4jGmTKwSGLI9GBdF46Hbt2_\344\270\255\351\244\220"inside theevent.data.after.reference.updatefunction. Notably, the part"\344\270\255\351\244\220"is an octal representation of the UTF-8 encoding for中餐. To convert it, each octal sequence (e.g.\344) can be converted into hexadecimal to get\xe4\xb8\xad\xe9\xa4\x90which is the UTF-8 byte sequence for中餐.