google-cloud-functions - Firebase 日志错误 FAILED_PREC

我正在尝试制作一个 firebase firestore 函数来从一个设备向另一个设备发送通知,但是当我部署它时,我在控制台日志中收到了这个错误。

{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":9,"message":"FAILED_PRECONDITION"},"authenticationInfo":{ "principalEmail":"ahmednab93@gmail.com"},"requestMetadata":{"callerIp":"156.208.116.97","callerSuppliedUserAgent":"FirebaseCLI/7.2.1,gzip(gfe),gzip(gfe)", "requestAttributes":{"time":"2019-07-29T16:14:02.968Z","auth":{}},"destinationAttributes":{}},"serviceName":"cloudfunctions.googleapis.com", “methodName”:“google.cloud.functions.v1.CloudFunctionsService.UpdateFunction”,“authorizationInfo”:[{“permission”:“cloudfunctions.functions.update”,“granted”:true,“resourceAttributes”:{}}, {"resource":"projects/pharmacy-20900/locations/us-central1/functions/sendNotification","permission":"cloudfunctions.functions.update","granted":true,"resourceAttributes":{}}], “resourceName”:“projects/pharmacy-20900/locations/us-central1/functions/sendNotification”,“request”:{“updateMask”:“sourceUploadUrl,名称,标签,运行时,eventTrigger.resource,eventTrigger.eventType,eventTrigger .service","@type":"type.googleapis.com/google.cloud.functions.v1.UpdateFunctionRequest","function":{"eventTrigger":{"eventType":"providers/cloud.firestore/eventTypes/document.write","re​​source":"projects/pharmacy-20900/databases/(默认)/documents/pharmacies/{pharmacy_id}/notifications/{notification_id}","service":"firestore.googleapis.com"}, “sourceUploadUrl”:“https://storage.googleapis.com/gcf-upload-us-central1-0d95e983-f4fa-4c11-81b9-6e4469829392/ddcadf56-bd44-4316-a945-6736ef01c7eb.zip?GoogleAccessId=service-410106319211@gcf-admin-robot.iam.gserviceaccount.com&Expires=1564418639&Signature=ElmWD3IeTx8j%2FdJKqMOjBZ4BnZ22MUS7uiZ77xtX1lZULFtHQ0%2F4QVBU%2BIum8%2Fdrv%2BaeTNa7mjN00HZEL7eVnDlX1ogxKdDv3ZeBBfrKDDz9NWqY3M126mFT48dAVdkRDBBEMcKllQoELKgwnJK6aRyDWawYVx5O64Ybrczr3y4RlmlFxa57ZT7418HoWRgV%2FH5IlFymTYPbHTG2lbJfEN4KBrTUv0WBvYx%2BViOvwAMnq8DerXj9q6SkBXt8zSTDmUirsOWEUcsVGh6nEYvg0EWRNCiklxiQys%2BLeJvE4pSsUrs%2BwPeErOFWZd%2FeOwyojpkA617f8Yf6qHrpjrugyA%3D%3D ","runtime":"nodejs8","name":"projects/pharmacy-20900/locations/us-central1/functions/sendNotification","labels":{"deployment-tool":"cli-firebase"}} }}

这个错误意味着什么?

最佳答案

在我的例子中,我可以在删除给出错误的函数的现有版本后成功部署。可能错误原因是现有版本使用了节点10,而新版本使用了节点8。

关于google-cloud-functions - Firebase 日志错误 FAILED_PRECONDITION 代码 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57257963/

相关文章:

spring - 让 Spring RestTemplate 使用内存中的 pem 证书(不在磁盘上

python-3.x - 属性错误 : 'NoneType' object has no attri

python - 导入 pycurl : Library not loaded: @rpath/li

javascript - 如何在 Google TimeLine 图表中仅在一行中设置一个条形图(带

javascript - 在 Angular 6 中处理来自第三方 URL 的发布响应。无法发布错误

google-cloud-storage - 与 Google Cloud Storage 的连接池

python - 如何使用分类变量和数值变量绘制相关矩阵/热图

svelte - 将选定的 Svelte 组件编译为 CustomElements

c# - EF Core - 无法添加具有相同相关对象的实体

typescript - VS代码/w。在 TypeScript Monorepo 中更漂亮