Closed ray-z closed 6 years ago
像README里面一样使用client.post的时候报错: error message: API unsupport the channel: HTTP.
README
client.post
error message: API unsupport the channel: HTTP.
在API网关上的设置是支持HTTP的:协议:HTTP,HTTPS
HTTP
协议:HTTP,HTTPS
使用的是阿里云的二级域名:*-cn-shanghai.alicloudapi.com
*-cn-shanghai.alicloudapi.com
在headers里添加'Content-Type': 'application/x-www-form-urlencoded'解决了问题。
headers
'Content-Type': 'application/x-www-form-urlencoded'
像
README
里面一样使用client.post
的时候报错:error message: API unsupport the channel: HTTP.
在API网关上的设置是支持
HTTP
的:协议:HTTP,HTTPS
使用的是阿里云的二级域名:
*-cn-shanghai.alicloudapi.com