tarantool / nginx_upstream_module

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

Can't post data from echo.lua example #64

Closed wprayudo closed 7 years ago

wprayudo commented 7 years ago

2016/09/27 06:45:21 [crit] 31283#0: *5 [BUG] failed to complete output transcoding. UNKNOWN ERROR while reading response header from upstream, client: 127.0.0.1, server: tnt_test, request: "POST /echo HTTP/1.1", upstream: "tnt://127.0.0.1:10001", host: "127.0.0.1:8081"

I did make build-all-debug

dedok commented 7 years ago

@wprayudo Hi, which version of Tarantool do you use? I'll check this issue ASAP

wprayudo commented 7 years ago

it just worked once, and then appeared that error. I also tried all build options, and got the same error. I use the latest tarantool (1.7.1 ?)

dedok commented 7 years ago

I see, It could be problem like that https://github.com/tarantool/nginx_upstream_module/issues/56 Also, which version of nginx upstream do you use? (master or tag)

wprayudo commented 7 years ago

master

dedok commented 7 years ago

it was a problem with example, I removed location out of nginx conf (i.e. test/ngx_confs/tnt_server_test.conf) also tarantool does listened wrong port and host (i.e. example/echo.lua).

I fixed this. So let me know if you have a problem.

So if you using GUI(example/echo.html) you may post a echo ["1", "2"] and you will see a result Ok [4]{"id":4,"result":[["1"]]}

dedok commented 7 years ago

Also, I suggest to you use docker image for installing tarantool & nginx. Nginx: https://hub.docker.com/r/tarantool/tarantool-nginx Tarantool: https://hub.docker.com/r/tarantool/tarantool

wprayudo commented 7 years ago

ahaa, it works well now. thank you for help .

dedok commented 7 years ago

@wprayudo Thank you for a bug report! :)