You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "nic-6443 (via GitHub)" <gi...@apache.org> on 2023/04/11 05:48:59 UTC
[GitHub] [apisix] nic-6443 commented on issue #9273: help request: resty http got BAD ARGUMENT exception by accident
nic-6443 commented on issue #9273:
URL: https://github.com/apache/apisix/issues/9273#issuecomment-1502720569
```
local function _receive_status(sock)
local line, err = sock:receive("*l")
if not line then
return nil, nil, nil, err
end
local version = tonumber(str_sub(line, 6, 8)) -- line is a boolean?
```
The error message is indeed very strange. According to the [documentation of the `tcpsock:receive`](https://github.com/openresty/lua-nginx-module/tree/v0.10.21#tcpsockreceive) function, the returned data should be a string type, but the error here says that it is a boolean type variable.
Can you help capture a network packet from apisix to consul using tcpdump? This way we can see what kind of tcp payload triggered the above error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org