【问题标题】:Azure table service sends random 400 errors bot bot framework applicationAzure 表服务发送随机 400 错误 bot 机器人框架应用程序
【发布时间】:2018-10-01 08:10:10
【问题描述】:

我正在使用 azure-botbuilder 构建机器人应用程序。机器人会话状态正在通过此

在 azure 表存储中进行管理
var azureTableClient = new azure.AzureTableClient(environment.config.BOT.TABLE_NAME, environment.config.BOT.STORAGE_NAME, environment.config.BOT.STORAGE_KEY);

var tableStorage = new azure.AzureBotStorage({gzipData: false}, azureTableClient);

对于某些活动(不幸的是很难跟踪哪些活动)-我从 azure table 服务收到以下错误

Error: Failed to perform the requested operation on Azure Table. Message: The property value exceeds the maximum allowed size (64KB). If the property value is a string, it is UTF-16 encoded and the maximum number of characters should be 32K or less.
RequestId:5b6ad583-6002-002a-62c1-583676000000

我当然不会在我的会话中存储 64 KB 这样大的东西。我们在机器人状态中存储了一些 UUID、GUID 和布尔值。

我如何追踪这些产生错误的请求?我可以以某种方式覆盖 tableStorage 来告诉我发送的请求详细信息是什么,会产生这样的错误。到目前为止,表存储是一个黑盒子

【问题讨论】:

    标签: node.js azure botframework azure-table-storage


    【解决方案1】:

    您可以使用 Azure 存储资源管理器检查 Azure 表存储中存储的内容。可从此处免费下载:https://azure.microsoft.com/en-us/features/storage-explorer/

    如果您想在本地运行和调试,您还可以选择使用 Azure Storage Emulator 之类的工具:https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator

    【讨论】:

      【解决方案2】:

      您应该在 Bot Framework Emulator 上尝试一下,相反,您会看到来自对话/活动的日志。

      【讨论】:

        猜你喜欢
        • 2017-02-16
        • 2016-09-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-02-25
        • 2022-01-19
        • 2020-04-02
        • 2021-01-03
        相关资源
        最近更新 更多