oneclickpocket icon indicating copy to clipboard operation
oneclickpocket copied to clipboard

Requesting Pocket AccessToken failed

Open kuestenjunge opened this issue 12 years ago • 7 comments

If I try to get an access token I'm getting this error: There was a problem trying to connect this app to Pocket. Please try again. Array ( [output] => Array ( [is_valid] => 0 ) [header] => 403 Forbidden )

I'm using the current version from github of oneclickpocket. PHP Version 5.3.21

kuestenjunge avatar Jul 01 '13 15:07 kuestenjunge

I get the same error when I use a wrong consumer key. Could you please make sure you are using the key you created exactly as displayed at http://getpocket.com/developer/apps/ ?

fxneumann avatar Jul 02 '13 07:07 fxneumann

Hi Felix, I've copied the consumer key from pocket. These are ny settings for the application at pocket:

In Development

NAME PLATFORM CONSUMER KEY OneClickPocket Web 15988-......

kuestenjunge avatar Jul 02 '13 08:07 kuestenjunge

Well, that would have been too easy a solution. Three more things to troubleshoot:

  1. Please provide the URL of the page displaying the error. It should start with https://getpocket.com/auth/authorize? (obfuscate redirect-uri and consumer key to protect your data)
  2. Try using my working installation with your key: http://reader.fxneumann.de/plugins/oneclickpocket/auth.php
  3. if you want to, you can send me your consumer key by mail so I can rule out it's the key.

fxneumann avatar Jul 02 '13 09:07 fxneumann

Hi, thanks for your help.

  1. Here is the URL https://getpocket.com/auth/authorize?request_token=&redirect_uri=http%3A%2F%2Frss....de%2Fplugins%2Foneclickpocket%2Fauth.php%3Fconsumer_key%3D15988....%26token%3D
  2. That works - I can authenticate the app without any error.
  3. I can sent you the key via mail

Best regards Kuestenjunge

kuestenjunge avatar Jul 02 '13 10:07 kuestenjunge

Hm, the URL looks exactly as it should, your consumer key is correct. You can use the access token generated with my installation, it's only connected to your consumer key and therefore independent from my installation.

Something seems to be wrong with submitting the consumer key. I use the Curl extension to post the data – is it enabled on your server, and which version? (If you do not know: put a file phpinfo.php on your server with this contents: "" and open it in your browser. Is Curl listed in the appearing page?)

fxneumann avatar Jul 02 '13 10:07 fxneumann

Hi, curl extension is enabled.

This is the phpinfo output of curl

cURL support enabled cURL Information 7.21.0 Age 3 Features AsynchDNS No Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI No krb4 No libz Yes CharConv No Protocols dict, file, ftp, ftps, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host i486-pc-linux-gnu SSL Version OpenSSL/0.9.8o ZLib Version 1.2.3.4 libSSH Version libssh2/1.2.6

kuestenjunge avatar Jul 02 '13 11:07 kuestenjunge

Hi, did you receive my email?

kuestenjunge avatar Jul 03 '13 18:07 kuestenjunge