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
Comments
@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. |
@whatacold Never mind. I see what is going on now :) Thanks for the report! |
@agentzh OK, I'll provide the configuration example and version number next time, sorry for the inconvenience. |
…is seciton by migrating to the *_by_lua_block {} directives. thanks whatacold for the report in #8.
@whatacold I've fixed the examples in the docs by migrating to the new |
@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. |
@whatacold Thanks! No hurry :) |
@agentzh The new example configurations works, with latest release 1.9.3.2. |
@whatacold Cool, thanks for the feedback. I'm closing this. |
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.The text was updated successfully, but these errors were encountered: