{"action":"created","issue":{"url":"https://api.github.com/repos/okfn/ckan.js/issues/19","labels_url":"https://api.github.com/repos/okfn/ckan.js/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/okfn/ckan.js/issues/19/comments","events_url":"https://api.github.com/repos/okfn/ckan.js/issues/19/events","html_url":"https://github.com/okfn/ckan.js/issues/19","id":92670365,"number":19,"title":"400 Bad Request","user":{"login":"aitormagan","id":2526562,"avatar_url":"https://avatars.githubusercontent.com/u/2526562?v=3","gravatar_id":"","url":"https://api.github.com/users/aitormagan","html_url":"https://github.com/aitormagan","followers_url":"https://api.github.com/users/aitormagan/followers","following_url":"https://api.github.com/users/aitormagan/following{/other_user}","gists_url":"https://api.github.com/users/aitormagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aitormagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitormagan/subscriptions","organizations_url":"https://api.github.com/users/aitormagan/orgs","repos_url":"https://api.github.com/users/aitormagan/repos","events_url":"https://api.github.com/users/aitormagan/events{/privacy}","received_events_url":"https://api.github.com/users/aitormagan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-02T15:50:34Z","updated_at":"2015-07-31T14:58:22Z","closed_at":"2015-07-31T09:36:32Z","body":"Hi,\r\n\r\nI've tried to use this module but it's not working for me. CKAN is always returning 400 ValidationError. \r\n\r\nI've check the code and I think that I've found the error (at least the solution is working for me). In `ckan.js:144` I've replaced `request(conf,...` by `request.post(conf,...`.  By including `.post`, the request library is making a `POST` request so the parameters can be sent. Otherwise, the request library will make a `GET` request without parameters.\r\n\r\nBR"},"comment":{"url":"https://api.github.com/repos/okfn/ckan.js/issues/comments/126718755","html_url":"https://github.com/okfn/ckan.js/issues/19#issuecomment-126718755","issue_url":"https://api.github.com/repos/okfn/ckan.js/issues/19","id":126718755,"user":{"login":"luiscape","id":953118,"avatar_url":"https://avatars.githubusercontent.com/u/953118?v=3","gravatar_id":"","url":"https://api.github.com/users/luiscape","html_url":"https://github.com/luiscape","followers_url":"https://api.github.com/users/luiscape/followers","following_url":"https://api.github.com/users/luiscape/following{/other_user}","gists_url":"https://api.github.com/users/luiscape/gists{/gist_id}","starred_url":"https://api.github.com/users/luiscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luiscape/subscriptions","organizations_url":"https://api.github.com/users/luiscape/orgs","repos_url":"https://api.github.com/users/luiscape/repos","events_url":"https://api.github.com/users/luiscape/events{/privacy}","received_events_url":"https://api.github.com/users/luiscape/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T14:58:22Z","updated_at":"2015-07-31T14:58:22Z","body":"That's great! "}}