tarantool / nginx_upstream_module

Tarantool NginX upstream module (REST, JSON API, websockets, load balancing)
Other
174 stars 18 forks source link

transcode bug #53

Closed Sulverus closed 8 years ago

Sulverus commented 8 years ago
2016/08/23 15:00:08 [crit] 1652#1652: *1886 [BUG] failed to transcode output. errcode: '-32603', errmsg: 'json_encode_string: invalid arguments' while reading response header from upstream, client: 127.0.0.1, server: tnt_test, request: "GET /ucp/config/0001 HTTP/1.1", upstream: "tnt://127.0.0.1:4301", host: "sh2.tarantool.org", referrer: "http://sh2.tarantool.org/ucp/config/0001"

request:

GET http://sh2.tarantool.org/ucp/config/0001
Headers:
Bauth-token: <token>

response: HTTP 595

You can reproduce it by returning a large msgpack from tarantool (~1MB+)

dedok commented 8 years ago

It was a problem with empty strings, I fixed the problem