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

example client fails #11

Closed
DifferentialOrange opened this issue Feb 8, 2021 · 1 comment · Fixed by #12
Closed

example client fails #11

DifferentialOrange opened this issue Feb 8, 2021 · 1 comment · Fixed by #12

Comments

@DifferentialOrange
Copy link
Member

DifferentialOrange commented Feb 8, 2021

Prerequirements:
tarantoolctl rocks install http 2.0.1
tarantoolctl rocks install tracing

Run:
tarantool formatter.lua,
tarantool publisher.lua in separate terminal window,
tarantool client.lua in separate terminal window.

Last one fails with

LuajitError: client.lua:85: Print string error: {"status":595,"reason":"Couldn't connect to server"}
fatal error, exiting the event loop

while tarantool formatter.lua still logs

started
entering the event loop
GET /format?helloto=world

tarantool publisher.lua logs only

entering the event loop

and there are some traces in Jagger:
image

@DifferentialOrange
Copy link
Member Author

DifferentialOrange commented Feb 8, 2021

Seems like the reason is missing httpd:start() in publisher.lua app.init() in README

DifferentialOrange added a commit that referenced this issue Feb 8, 2021
olegrok pushed a commit that referenced this issue Feb 8, 2021
This patch fixes example in readme.md.
Before this patch we didn't start http server - this patch adds
missing command.

Closes #11
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

Successfully merging a pull request may close this issue.

1 participant