Twilio错误-12300-有时仅无效的内容类型 [英] Twilio Error - 12300 - Invalid Content Type only sometimes

查看:87
本文介绍了Twilio错误-12300-有时仅无效的内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个绑定到数字的C#/.NET WebApi端点.该号码收到文本后,就会通过webhook转发给我的API.

I have a C# / .NET WebApi endpoint tied to a number. When that number receives a text, it's forwarded to my API via webhook.

有时候(并非总是如此),我的调试器中出现以下错误:

Sometimes (not all the time), I get an error in my debugger with the following:

错误-12300

Error - 12300

无效的内容类型

Twilio无法处理所提供URL的Content-Type.有关更多信息,请参阅Twilio标记XML文档.有效的内容类型.您必须为所有请求返回Content-Type.没有内容类型的请求将在应用程序监视器中显示为502错误的网关错误.

Twilio is unable to process the Content-Type of the provided URL. Please see the Twilio Markup XML Documentation for more information on valid Content-Types. You must return a Content-Type for all requests. Requests without a Content-Type will appear in the App Monitor as a 502 Bad Gateway error.

在触发此操作的响应中,我看到以下内容:

In the response that triggered this, I see the following:

具有以下标题:

Content-Type application/json; charset=utf-8 
Pragma no-cache 
Date Sat, 14 Jan 2017 02:57:45 GMT 
X-AspNet-Version 4.0.30319 
X-Powered-By ASP.NET

可能是什么原因造成的,我该如何解决?

What might be causing this, and how do I address it?

推荐答案

这篇关于Twilio错误-12300-有时仅无效的内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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