{"action":"created","issue":{"url":"https://api.github.com/repos/Neal/Readebble/issues/6","repository_url":"https://api.github.com/repos/Neal/Readebble","labels_url":"https://api.github.com/repos/Neal/Readebble/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Neal/Readebble/issues/6/comments","events_url":"https://api.github.com/repos/Neal/Readebble/issues/6/events","html_url":"https://github.com/Neal/Readebble/issues/6","id":123880751,"number":6,"title":"Pocket not working","user":{"login":"poisonborz","id":1070611,"avatar_url":"https://avatars.githubusercontent.com/u/1070611?v=3","gravatar_id":"","url":"https://api.github.com/users/poisonborz","html_url":"https://github.com/poisonborz","followers_url":"https://api.github.com/users/poisonborz/followers","following_url":"https://api.github.com/users/poisonborz/following{/other_user}","gists_url":"https://api.github.com/users/poisonborz/gists{/gist_id}","starred_url":"https://api.github.com/users/poisonborz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poisonborz/subscriptions","organizations_url":"https://api.github.com/users/poisonborz/orgs","repos_url":"https://api.github.com/users/poisonborz/repos","events_url":"https://api.github.com/users/poisonborz/events{/privacy}","received_events_url":"https://api.github.com/users/poisonborz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-25T13:10:34Z","updated_at":"2016-03-20T05:18:16Z","closed_at":null,"body":"I connected to Pocket account in Settings (displays \"logged in successfully\"), but in the reader after I hold down the Select and the watch vibrates, the story won't be added to Pocket. I'm on Pebble Classic, firmware 3.8.2.\r\n\r\nAlso, is there a donation link for you? Readebble is just what I wanted for Pebble (especially the Pocket support!!!), and would love if development would continue."},"comment":{"url":"https://api.github.com/repos/Neal/Readebble/issues/comments/198852569","html_url":"https://github.com/Neal/Readebble/issues/6#issuecomment-198852569","issue_url":"https://api.github.com/repos/Neal/Readebble/issues/6","id":198852569,"user":{"login":"ydyu","id":531204,"avatar_url":"https://avatars.githubusercontent.com/u/531204?v=3","gravatar_id":"","url":"https://api.github.com/users/ydyu","html_url":"https://github.com/ydyu","followers_url":"https://api.github.com/users/ydyu/followers","following_url":"https://api.github.com/users/ydyu/following{/other_user}","gists_url":"https://api.github.com/users/ydyu/gists{/gist_id}","starred_url":"https://api.github.com/users/ydyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ydyu/subscriptions","organizations_url":"https://api.github.com/users/ydyu/orgs","repos_url":"https://api.github.com/users/ydyu/repos","events_url":"https://api.github.com/users/ydyu/events{/privacy}","received_events_url":"https://api.github.com/users/ydyu/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T05:18:16Z","updated_at":"2016-03-20T05:18:16Z","body":"I found the reason why Pocket is not working: the Content-Type isn't set in request header, causing a 400 Bad Request error.\r\n\r\nTo fix: in js/src/main.js, under \r\n` Readebble.addToPocket = function() {/*...*/ `\r\n\r\nchange this line:\r\n\r\n`  http('POST', url, serialize(data), null, function (e) {`\r\n\r\nto this:\r\n\r\n`  http('POST', url, serialize(data), {\"Content-Type\": \"application/x-www-form-urlencoded\"}, function (e) {`\r\n\r\nTested in my local recompile and it worked for me on Pebble Time with Android.\r\n\r\nPlease consider fixing this in the next version. Thanks!"}}