{"action":"created","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/1040","repository_url":"https://api.github.com/repos/ninenines/cowboy","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/1040/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/1040/events","html_url":"https://github.com/ninenines/cowboy/issues/1040","id":184098448,"number":1040,"title":"I cannot make HTTP requests.","user":{"login":"JamesArthurHolland","id":10409492,"avatar_url":"https://avatars.githubusercontent.com/u/10409492?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesArthurHolland","html_url":"https://github.com/JamesArthurHolland","followers_url":"https://api.github.com/users/JamesArthurHolland/followers","following_url":"https://api.github.com/users/JamesArthurHolland/following{/other_user}","gists_url":"https://api.github.com/users/JamesArthurHolland/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesArthurHolland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesArthurHolland/subscriptions","organizations_url":"https://api.github.com/users/JamesArthurHolland/orgs","repos_url":"https://api.github.com/users/JamesArthurHolland/repos","events_url":"https://api.github.com/users/JamesArthurHolland/events{/privacy}","received_events_url":"https://api.github.com/users/JamesArthurHolland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-19T23:19:32Z","updated_at":"2016-10-20T21:12:40Z","closed_at":"2016-10-20T21:12:40Z","body":"Hi, \r\n\r\nI've recently got using cowboy and I am really enthused by what it provides. I got a quick endpoint working that handles post / get requests with hardly any lines of code compared to what it would take to set up a PHP application in whatever framework.\r\n\r\nThe problem: \r\nI can't make a HTTP request from within cowboy application. I tried installing cowboy through the tutorial (with erlang.mk) and with rebar3, still the same issue. It crashes everytime I try to call inets:start(). I can spawn an erlang shell with erl and it works there, but not in the eshell that is spawned when I run the compiled release with the console option, as in the tutorial. I get this error\r\n\r\n(cowboy_hello_world@CTAFrontend)1> application:start(inets).\r\n{error,{\"no such file or directory\",\"inets.app\"}}\r\n\r\n^This same error happens for application:start(ssl).    , but both commands work when in an erlang shell spawned by 'erl' command. I have successfully made http requests from within a shell spawned by 'erl'.\r\n\r\nTried to use gun as a workaround but if I add \"DEPS = gun\" to the Makefile, it compiles ok but then crashes every time I start the application.\r\n\r\nBeen at this for nearly 10 hours and really starting to lose faith in what I started out thinking was a great new way of doing things.\r\n\r\nUsing ubuntu 12.04 on a virtualbox vm, with the latest esl-erlang download from the erlang solutions repos. "},"comment":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/comments/255229871","html_url":"https://github.com/ninenines/cowboy/issues/1040#issuecomment-255229871","issue_url":"https://api.github.com/repos/ninenines/cowboy/issues/1040","id":255229871,"user":{"login":"JamesArthurHolland","id":10409492,"avatar_url":"https://avatars.githubusercontent.com/u/10409492?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesArthurHolland","html_url":"https://github.com/JamesArthurHolland","followers_url":"https://api.github.com/users/JamesArthurHolland/followers","following_url":"https://api.github.com/users/JamesArthurHolland/following{/other_user}","gists_url":"https://api.github.com/users/JamesArthurHolland/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesArthurHolland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesArthurHolland/subscriptions","organizations_url":"https://api.github.com/users/JamesArthurHolland/orgs","repos_url":"https://api.github.com/users/JamesArthurHolland/repos","events_url":"https://api.github.com/users/JamesArthurHolland/events{/privacy}","received_events_url":"https://api.github.com/users/JamesArthurHolland/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T21:12:40Z","updated_at":"2016-10-20T21:12:40Z","body":"Yes, that was it, variable was already bound. I'm still learning the basics lol. I wrote my first line of Erlang yesterday. I like to jump in at the deep end. Thanks very much for your help, hopefully one day I'll be good enough to contribute to this great project."}}
{"actor":{"display_login":"JamesArthurHolland"}}