Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
changtsing opened this issue Aug 19, 2016 · 5 comments

Comments

@changtsing
Copy link

使用代码形式如下:
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,
我看前面有这个提问,但是回复我的我没有理解意思。
麻烦看下这个问题吧,谢谢!

@wendal
Copy link
Collaborator

wendal commented Aug 21, 2016

postBody的内容是什么?

@changtsing
Copy link
Author

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

value是string类型的字符串,

发件人: bounces+848413-8dfe-wangqing_chang=[email protected] [mailto:bounces+848413-8dfe-wangqing_chang=[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 #43 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/AUJG4D99T5yIwvPcUtK_RZL9pmMaKV_fks5qh8dsgaJpZM4JoQ1Y . https://github.com/notifications/beacon/AUJG4CjIhZ4Km-i6kGRgFXFkdw43vGQoks5qh8dsgaJpZM4JoQ1Y.gif

@wendal
Copy link
Collaborator

wendal commented Aug 22, 2016

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

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

@cswangs
Copy link

cswangs commented Oct 25, 2021

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

@wendal
Copy link
Collaborator

wendal commented Oct 26, 2021

dns超时了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants