mangoGoForward edited a comment on issue #4929:
URL: https://github.com/apache/apisix/issues/4929#issuecomment-909784146
> > the type of unzip_data is userdata
>
> Any error logs? information from these two lines is less.
When I use zlib.inflate to unzip the response, it return a userdata type, so
it thrown bad argument when use json decode
```
local data, err = core.json.decode(unzip_data)
if not data then
log.error("invalid response body: ", type(unzip_data), " err: ", err)
return
end
```
The error log:
`
2021/08/31 09:29:35 [error] 12663#3713017: *80 [lua] eureka.lua:197: invalid
response body err: bad argument #1 to '?' (string expected, got userdata),
context: ngx.timer
`
I don't known how to process the data, can you help me? There is a problem
when process the Eureka's returned data
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]