lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

请求错误返回code:read status line failed read status line failed timeout

Open changtsing opened this issue 9 years ago • 5 comments

使用代码形式如下: local ok, code, headers, status, body =hc:request { url = url, method = "POST", body = postBody, headers = {["Content-Type"] = "application/x-www-form-urlencoded" } } 返回信息: code ='read status line failed read status line failed timeout' 服务端http状态码为499, 我看前面有这个提问,但是回复我的我没有理解意思。 麻烦看下这个问题吧,谢谢!

changtsing avatar Aug 19 '16 08:08 changtsing

postBody的内容是什么?

wendal avatar Aug 21 '16 03:08 wendal

postBody= "key1="..value1.."&key2="..value2.."&key3="..value3,

value是string类型的字符串,

发件人: [email protected] [mailto:[email protected]] 代表 Wendal Chen 发送时间: 2016年8月21日 11:35 收件人: liseen/lua-resty-http [email protected] 抄送: 642336674 [email protected]; Author [email protected] 主题: Re: [liseen/lua-resty-http] 请求错误返回code:read status line failed read status line failed timeout (#43)

postBody的内容是什么?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/liseen/lua-resty-http/issues/43#issuecomment-241237026 , or mute the thread https://github.com/notifications/unsubscribe-auth/AUJG4D99T5yIwvPcUtK_RZL9pmMaKV_fks5qh8dsgaJpZM4JoQ1Y . https://github.com/notifications/beacon/AUJG4CjIhZ4Km-i6kGRgFXFkdw43vGQoks5qh8dsgaJpZM4JoQ1Y.gif

changtsing avatar Aug 21 '16 04:08 changtsing

这样不行的, 你得给出确切可重现问题代码.

另外, 问题看上去是后端响应超时,而非lua库的原因

wendal avatar Aug 22 '16 02:08 wendal

我也遇到了这个错误, 本地curl请求访问没有问题. resty-http直接使用ip访问也没有问题,ip改成域名就开始报这个错误

cswangs avatar Oct 25 '21 02:10 cswangs

dns超时了吧

wendal avatar Oct 26 '21 15:10 wendal