python - Firebase Python admin sdk - 交易未进行,无法在 API 请求中使用
问题描述
我正面临上述错误。仅当我的代码部署为云功能时才会出现此错误。我没有使用事务装饰器
我的场景是 Function1()---transaction=db.transaction --->Function2(transaction)--does some things----function3(transaction)
然后 Function1 提交事务。它曾经工作,但突然它不工作。有人可以指导我,我如何使用python实现这个。
我找不到任何示例 - 它显示了 transaction._begin 和 transaction.commit 的示例
解决方案
推荐阅读
- mysql - 选择从出生日期起年龄在 35 - 50 之间的地方
- javascript - setTimeout 在 for 循环中的 Promise
- php - 相等的字符串在php上不相等
- ios - 如何使用 Inspector 在 Xcode 中缩放 3D 对象?
- mysql - MySql-5.1.40 全文搜索在 MyISAM 表中不起作用
- android - Cordova 构建 android“没有 android 构建工具”
- reactjs - 表单提交后如何将 react-select 组件重置为 defaultValue 状态
- powershell - 在 PowerShell 中编辑后如何存储文件?
- html - 有没有办法使用 box-shadow 有一个圆形的嵌入边框?
- aws-lambda - 解析 AWS Connect 中的对象列表