Azure函数发送分块响应,而Dialogflow不对其进行处理 [英] Azure function sends chunked response and Dialogflow does not process it

查看:88
本文介绍了Azure函数发送分块响应,而Dialogflow不对其进行处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Dialog流创建一个Google动作,并使用以c#编写的Azure函数实现的Webhook。我遇到了一个问题,即使用.net core 2从Azure函数发回的响应已被分块,但Dialog流无法理解分块的响应。尽管可以使用完整的.net框架关闭分块,但使用.net core 2似乎更难。有没有人找到解决此问题的方法?

I am creating a Google action using Dialog flow with a webhook implemented as an Azure function written in c#. I have run into a problem that using .net core 2 that the response sent back from the Azure function is being chunked but that Dialog flow does not understand the chunked response. Though it was possible to switch off chunking with the full .net framework it seems harder to do with .net core 2. Has anyone found a solution to this problem?

谢谢

我在网上搜索,不是唯一遇到此问题的人,但我有尚未看到可与.net core配合使用的解决方案

I searched online and is that I am not the only person running into this problem but I have not yet seen a solution that works with .net core

我的期望是,当Dialog流调用webhook时,它会收到响应,可以处理。

My expectation is that when Dialog flow calls the webhook that it receives a response it can process.

推荐答案

分块响应问题已已修复(为所有请求启用缓冲),因为运行时2.0.12265 已发布,现在在我的计算机上看到 2.0.12285.0 (在门户网站中,Function app settings,Runtime version)一侧。

The chunked response problem has been fixed(Enabling buffering for all requests) since runtime 2.0.12265 was released, right now see 2.0.12285.0(In portal, Function app settings, Runtime version) on my side.

这篇关于Azure函数发送分块响应,而Dialogflow不对其进行处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆