{"action":"created","issue":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/674","repository_url":"https://api.github.com/repos/openresty/lua-nginx-module","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/674/comments","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/674/events","html_url":"https://github.com/openresty/lua-nginx-module/issues/674","id":133323858,"number":674,"title":"Too many symbols inside content_by_lua area","user":{"login":"sdmrnv","id":13831386,"avatar_url":"https://avatars.githubusercontent.com/u/13831386?v=3","gravatar_id":"","url":"https://api.github.com/users/sdmrnv","html_url":"https://github.com/sdmrnv","followers_url":"https://api.github.com/users/sdmrnv/followers","following_url":"https://api.github.com/users/sdmrnv/following{/other_user}","gists_url":"https://api.github.com/users/sdmrnv/gists{/gist_id}","starred_url":"https://api.github.com/users/sdmrnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdmrnv/subscriptions","organizations_url":"https://api.github.com/users/sdmrnv/orgs","repos_url":"https://api.github.com/users/sdmrnv/repos","events_url":"https://api.github.com/users/sdmrnv/events{/privacy}","received_events_url":"https://api.github.com/users/sdmrnv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-12T19:31:08Z","updated_at":"2016-02-12T21:52:23Z","closed_at":null,"body":"Hi\r\n\r\nWhen I try to use string variable inside content_by_lua block with long text assigned to it I have received  nginx compile error: nginx: [emerg] Lua code block missing the closing long bracket \"]]\"\r\n\r\nFor example:\r\n\r\nserver{\r\n...\r\nlocation = /test {\r\n  .....bla-bla-bla...\r\n  content_by_lua_block {\r\n  ....\r\n  local some_long_text = [[Lorem Ipsum.....many symbols....qwerty]];\r\n  ngx.say(some_long_text);\r\n  }\r\n}\r\n\r\n\r\nIf I cut off symbols inside LOCATION (not only inside text variable) limiting them up to about 4 000 then all OK. There is the same problem if I even used content_by_lua_file. \r\n\r\nAnd unfortunately if I get this some_long_text variable from redis database (for example) I have receive 500 Internal Server Error when getting this location in my browser.  \r\n\r\nPlease help me with this problem because I am interested in this awesome module in my projects.\r\n\r\nThanks in advance\r\nSergey\r\n"},"comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments/183501560","html_url":"https://github.com/openresty/lua-nginx-module/issues/674#issuecomment-183501560","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/674","id":183501560,"user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T21:52:23Z","updated_at":"2016-02-12T21:52:23Z","body":"@sdmrnv Seems like you indeed have a Lua syntax error in your code? Will you provide a minimal and standalone example that I can try on my side?"}}