{"action":"created","issue":{"url":"https://api.github.com/repos/liseen/lua-resty-http/issues/36","labels_url":"https://api.github.com/repos/liseen/lua-resty-http/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/liseen/lua-resty-http/issues/36/comments","events_url":"https://api.github.com/repos/liseen/lua-resty-http/issues/36/events","html_url":"https://github.com/liseen/lua-resty-http/issues/36","id":117905860,"number":36,"title":"Error - sock connected failed no resolver defined to resolve","user":{"login":"ctadeu","id":4115580,"avatar_url":"https://avatars.githubusercontent.com/u/4115580?v=3","gravatar_id":"","url":"https://api.github.com/users/ctadeu","html_url":"https://github.com/ctadeu","followers_url":"https://api.github.com/users/ctadeu/followers","following_url":"https://api.github.com/users/ctadeu/following{/other_user}","gists_url":"https://api.github.com/users/ctadeu/gists{/gist_id}","starred_url":"https://api.github.com/users/ctadeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctadeu/subscriptions","organizations_url":"https://api.github.com/users/ctadeu/orgs","repos_url":"https://api.github.com/users/ctadeu/repos","events_url":"https://api.github.com/users/ctadeu/events{/privacy}","received_events_url":"https://api.github.com/users/ctadeu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liseen/lua-resty-http/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-19T20:55:56Z","updated_at":"2015-11-20T13:06:29Z","closed_at":"2015-11-19T23:29:30Z","body":"Hello\r\n\r\nI'm very new and maybe this is the issue :)\r\n\r\nIm trying to just make a test and then follow the example and change a little bit\r\n\r\n```\r\nlocation /test {\r\n            content_by_lua '\r\n                local http = require(\"resty.http\")\r\n                local hc = http:new()\r\n\r\n                local ok, code, headers, status, body  = hc:request {\r\n                    url = \"http://www.google.com\",\r\n                    method = \"GET\",\r\n                    headers = { [\"Content-Type\"] = \"application/json\" },\r\n                    body = \"\",\r\n                }\r\n\r\n                ngx.say(ok)\r\n                ngx.say(code)\r\n                ngx.say(body)\r\n            ';\r\n        }\r\n```\r\nbut Im getting this error:\r\n\r\n```\r\n\r\nnil\r\nsock connected failed no resolver defined to resolve \"www.google.com\"\r\nnil\r\n```\r\nWhat is wrong or what Im missing?\r\n\r\nthanks\r\n"},"comment":{"url":"https://api.github.com/repos/liseen/lua-resty-http/issues/comments/158396333","html_url":"https://github.com/liseen/lua-resty-http/issues/36#issuecomment-158396333","issue_url":"https://api.github.com/repos/liseen/lua-resty-http/issues/36","id":158396333,"user":{"login":"ctadeu","id":4115580,"avatar_url":"https://avatars.githubusercontent.com/u/4115580?v=3","gravatar_id":"","url":"https://api.github.com/users/ctadeu","html_url":"https://github.com/ctadeu","followers_url":"https://api.github.com/users/ctadeu/followers","following_url":"https://api.github.com/users/ctadeu/following{/other_user}","gists_url":"https://api.github.com/users/ctadeu/gists{/gist_id}","starred_url":"https://api.github.com/users/ctadeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctadeu/subscriptions","organizations_url":"https://api.github.com/users/ctadeu/orgs","repos_url":"https://api.github.com/users/ctadeu/repos","events_url":"https://api.github.com/users/ctadeu/events{/privacy}","received_events_url":"https://api.github.com/users/ctadeu/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T13:06:29Z","updated_at":"2015-11-20T13:06:29Z","body":"Thanks!!!\r\n"}}