google-cloud-platform - 有没有办法说明 Cloud DataStore 事务失败的原因?
问题描述
我正在使用 Ruby 客户端,只看到
Google::Cloud::Datastore::TransactionError: Transaction failed to commit.
from /myapp/bundle/ruby/2.4.0/gems/google-cloud-datastore-1.4.4/lib/google/cloud/datastore/dataset.rb:555:in `rescue in transaction'
是否有详细设置或我可以看到更多跟踪的东西?
解决方案
没有办法区分该问题和一些暂时性问题
是的,这是 SDK 中的一个缺陷。他们吃掉你原来的例外。在我的票务线程中阅读它:
推荐阅读
- php - 多对多关系的 Laravel 查询构建器
- visual-studio - 当变更集标记为已解决时,Visual Studio 更改卡在 VSTS 中设置的状态
- xml - XSL-FO 图像路径问题 - 将反斜杠更改为正向
- swift - Swift - Decoding a Deeply Nested Dictionary
- angular - 如何为组件的服务创建联合类型?
- python - 如何在 Python 中创建映射到列表的键的字典,列表中的每个元素都指向其他列表?
- jira - 如何添加到看板项目的链接以显示票证状态?
- javascript - 更新给定索引的数组值(mongoose,mongodb)
- python - 为什么 Pandas.DataFrame.iloc 转换为 numpy.float64 并舍入?
- c# - 跨多个静态类调用通用方法?