{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/314","repository_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/314/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/314/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/314","id":162010590,"number":314,"title":"receiving \"411 length required\" error when sending curl POST to create to my Matches Table","user":{"login":"mattb5","id":19194346,"avatar_url":"https://avatars.githubusercontent.com/u/19194346?v=3","gravatar_id":"","url":"https://api.github.com/users/mattb5","html_url":"https://github.com/mattb5","followers_url":"https://api.github.com/users/mattb5/followers","following_url":"https://api.github.com/users/mattb5/following{/other_user}","gists_url":"https://api.github.com/users/mattb5/gists{/gist_id}","starred_url":"https://api.github.com/users/mattb5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattb5/subscriptions","organizations_url":"https://api.github.com/users/mattb5/orgs","repos_url":"https://api.github.com/users/mattb5/repos","events_url":"https://api.github.com/users/mattb5/events{/privacy}","received_events_url":"https://api.github.com/users/mattb5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-23T20:02:54Z","updated_at":"2016-06-23T20:10:23Z","closed_at":null,"body":"sending the following curl request :\r\n\r\ncurl --include --request POST http://localhost:3000/matches\r\n--header \"Content-Type: application/json\"\r\n--header \"Authorization: Token token=\"BAhJIiU4ZjM1ODc1MmJhNmQ2MDExMWMxOTkyYThjYmI4Y2ZjYQY6BkVG--d53ae9456d4fa76804d462e57e39fbc531911087\" \\\r\n-- data '{\r\n     \"matches\": {\r\n         \"opponent\": \"hello there\",\r\n         \"user_id\": 1\r\n     }\r\n}'     \r\n\r\nto try to create a new row in my Matches table. \r\n\r\nhave successfully seeded my matches table, now trying to add new match data to it.  \r\n\r\nreceiving this error in my terminal upon sending the curl request:\r\n\r\n\r\nHTTP/1.1 411 Length Required \r\nContent-Type: text/html; charset=ISO-8859-1\r\nServer: WEBrick/1.3.1 (Ruby/2.3.0/2015-12-25)\r\nDate: Thu, 23 Jun 2016 19:57:39 GMT\r\nContent-Length: 303\r\nConnection: close\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\r\n<HTML>\r\n  <HEAD><TITLE>Length Required</TITLE></HEAD>\r\n  <BODY>\r\n    <H1>Length Required</H1>\r\n    WEBrick::HTTPStatus::LengthRequired\r\n    <HR>\r\n    <ADDRESS>\r\n     WEBrick/1.3.1 (Ruby/2.3.0/2015-12-25) at\r\n     localhost:3000\r\n    </ADDRESS>\r\n  </BODY>\r\n</HTML>\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/228168837","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/314#issuecomment-228168837","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/314","id":228168837,"user":{"login":"berziiii","id":8379295,"avatar_url":"https://avatars.githubusercontent.com/u/8379295?v=3","gravatar_id":"","url":"https://api.github.com/users/berziiii","html_url":"https://github.com/berziiii","followers_url":"https://api.github.com/users/berziiii/followers","following_url":"https://api.github.com/users/berziiii/following{/other_user}","gists_url":"https://api.github.com/users/berziiii/gists{/gist_id}","starred_url":"https://api.github.com/users/berziiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berziiii/subscriptions","organizations_url":"https://api.github.com/users/berziiii/orgs","repos_url":"https://api.github.com/users/berziiii/repos","events_url":"https://api.github.com/users/berziiii/events{/privacy}","received_events_url":"https://api.github.com/users/berziiii/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T20:10:23Z","updated_at":"2016-06-23T20:10:23Z","body":"do you have a space after `--` and before `data`?"}}
{"actor":{"display_login":"berziiii"}}