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

Init error using config as given in synopsis section of README #8

Closed
whatacold opened this issue Dec 7, 2015 · 8 comments
Closed

Comments

@whatacold
Copy link

The error msg is [error] 9595#0: init_worker_by_lua error: init_worker_by_lua:11: function arguments expected near '.'

And it seems like it's caused by this comment line: -- then you should write this instead: http_req = "GET /status HTTP/1.0\r\nHost: foo.com\r\n\r\n",, I think it's a trial issue but I failed to fix this :-(, as I'm new to both OpenResty and Lua.

@agentzh
Copy link
Member

agentzh commented Dec 7, 2015

@whatacold Please provide a minimal and self-contained configuration example that I can easily reproduce it on my side. BTW, please always provide the version number of OpenResty you're using when reporting issues. Thank you.

@agentzh
Copy link
Member

agentzh commented Dec 7, 2015

@whatacold Never mind. I see what is going on now :) Thanks for the report!

@whatacold
Copy link
Author

@agentzh OK, I'll provide the configuration example and version number next time, sorry for the inconvenience.

agentzh added a commit that referenced this issue Dec 7, 2015
…is seciton by migrating to the *_by_lua_block {} directives. thanks whatacold for the report in #8.
@agentzh
Copy link
Member

agentzh commented Dec 7, 2015

@whatacold I've fixed the examples in the docs by migrating to the new *_by_lua_block directives. Will you please try the new example on your side? BTW, you need at least OpenResty 1.9.3.2 (or ngx_lua 0.9.19) for it.

@whatacold
Copy link
Author

@agentzh Thanks. As my current version OpenResty is 1.9.3.1 and it's a bit late now, I'll try it tomorrow with version 1.9.3.2 and report back.

@agentzh
Copy link
Member

agentzh commented Dec 7, 2015

@whatacold Thanks! No hurry :)

@whatacold
Copy link
Author

@agentzh The new example configurations works, with latest release 1.9.3.2.
Thanks.

@agentzh
Copy link
Member

agentzh commented Dec 9, 2015

@whatacold Cool, thanks for the feedback. I'm closing this.

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

No branches or pull requests

2 participants