Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pocket not working #6

Open
poisonborz opened this issue Dec 25, 2015 · 2 comments
Open

Pocket not working #6

poisonborz opened this issue Dec 25, 2015 · 2 comments

Comments

@poisonborz
Copy link

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.

Also, 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.

@trumad
Copy link

trumad commented Jan 11, 2016

I have exactly the same problem, same firmware. It's a pebble steel. I'm using Android. I really love the idea of this app too, but without being able to send interesting headlines to read on pocket later it's not as useful to me as it could be. Let me know if you need more information...

@ydyu
Copy link

ydyu commented Mar 20, 2016

I found the reason why Pocket is not working: the Content-Type isn't set in request header, causing a 400 Bad Request error.

To fix: in js/src/main.js, under
Readebble.addToPocket = function() {/*...*/

change this line:

http('POST', url, serialize(data), null, function (e) {

to this:

http('POST', url, serialize(data), {"Content-Type": "application/x-www-form-urlencoded"}, function (e) {

Tested in my local recompile and it worked for me on Pebble Time with Android.

Please consider fixing this in the next version. Thanks!

llewelld added a commit to llewelld/Readebble that referenced this issue Mar 21, 2016
To fix issue Neal#6 preventing Pocket integration from working
properly. This adds the fix identified by @ydyu see:

Neal#6 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants