Closed GovindCoding closed 5 years ago
Hi,
We are also experiencing same issue.
Hope this will be resolved soon.
Thanks & Regards.
On Wed, Jul 10, 2019 at 9:08 PM GovindCoding notifications@github.com wrote:
When I login and accept user login and try to access khan API "OAuthRequester" using consumerKey, oauthToken and accessTokenParams it showing me a "500 Internal Server Error".
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Khan/khan-api/issues/140?email_source=notifications&email_token=AB6W56NQCP6UXHNT6MSOS5LP6XNNFA5CNFSM4H7PFGUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6LFLJA, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6W56IHRF6IUYDBLKTKQQDP6XNNFANCNFSM4H7PFGUA .
Hi,
Thanks for the update. I am able to resolve, after spending 2 days. It was because of OAuthRequester module calling curl_init() function and in my PHP curl_init() function is undefined. So, I have installed curl using this command "sudo apt-get install php7.1-curl" as I am having PHP 7.1, you can use installed PHP version.
Wow thanks, I'll try it. We have also had a recent update of php version.
On Thu, Jul 11, 2019, 12:19 PM GovindCoding, notifications@github.com wrote:
Hi,
Thanks for the update. I am able to resolve, after spending 2 days. It was because of OAuthRequester module calling curl_init() function and in my PHP curl_init() function is undefined. So, I have installed curl using this command "sudo apt-get install php7.1-curl" as I am having PHP 7.1, you can use installed PHP version.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Khan/khan-api/issues/140?email_source=notifications&email_token=AB6W56K2T4L674APW656WKTP62YGZA5CNFSM4H7PFGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVOSUI#issuecomment-510323025, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6W56MAAI2AALYQRXRIIQ3P62YGZANCNFSM4H7PFGUA .
I am experiencing a different problem. I get an error from Oauthrequester,php file:
Undefined variable: code oauth-php/library/OAuthRequester.php on line 485 PHP Fatal error: Uncaught exception 'OAuthException2' with message 'Unexpected result from the server " https://www.khanacademy.org/api/auth/access_token" () while requesting an access token' oauth-php/library/OAuthRequester.php:258 Stack trace:
OAuthRequester::requestAccessToken('gCjGBfnQBAG8u4R...', 't47338259573309...', 0, 'POST', Array)
thrown in controller/oauth-php/library/OAuthRequester.php on line 258
Hope you can help me. Thanks a lot in advance.
On Thu, Jul 11, 2019 at 12:21 PM Harold Sabanal haroldsabanal@gmail.com wrote:
Wow thanks, I'll try it. We have also had a recent update of php version.
On Thu, Jul 11, 2019, 12:19 PM GovindCoding, notifications@github.com wrote:
Hi,
Thanks for the update. I am able to resolve, after spending 2 days. It was because of OAuthRequester module calling curl_init() function and in my PHP curl_init() function is undefined. So, I have installed curl using this command "sudo apt-get install php7.1-curl" as I am having PHP 7.1, you can use installed PHP version.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Khan/khan-api/issues/140?email_source=notifications&email_token=AB6W56K2T4L674APW656WKTP62YGZA5CNFSM4H7PFGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVOSUI#issuecomment-510323025, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6W56MAAI2AALYQRXRIIQ3P62YGZANCNFSM4H7PFGUA .
Hi @23harolds, it sounds like you are having the exact issue as #141. I am wondering if it is getting a similar response that I am seeing in Python, essentially OAuth error. Invalid signature.
, which indicates that the library is not producing the correct signature string that the Khan Academy API is expecting.
Anyways, you probably want to add your issue to #141 instead of tracking it here on a closed thread.
When I login and accept user login and try to access khan API "OAuthRequester" using consumerKey, oauthToken and accessTokenParams it showing me a "500 Internal Server Error".