gpt4 book ai didi

google-cloud-functions - Firebase 日志错误 FAILED_PRECONDITION 代码 9

转载 作者:行者123 更新时间:2023-12-05 07:20:50 35 4
gpt4 key购买 nike

我正在尝试制作一个 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/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com