-
Notifications
You must be signed in to change notification settings - Fork 74
Khan API stopped working #141
Comments
Thanks for your report. Does the code say what the "unexpected result" is?
craig
…On Sun, Jul 14, 2019 at 7:54 PM rexwal ***@***.***> wrote:
Previously working code using OAuthRequester2 started to fail 2 weeks ago
(Working for 1 year+)
PHP Notice: Undefined variable: code in
/home/sville/public_html/khanmvc/controller/oauth-php/library/OAuthRequester.php
on line 485
[15-Jul-2019 10:48:12 Asia/Manila] 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' in
/home/sville/public_html/khanmvc/controller/oauth-php/library/OAuthRequester.php:258
Stack trace:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#141?email_source=notifications&email_token=AALA2Z44PZLGUGFNHDDTP7TP7PRHLA5CNFSM4IDSYXAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7D46YA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALA2Z4GBKENBMHY6NYGPCDP7PRHLANCNFSM4IDSYXAA>
.
|
I am seeing a similar issue with the Python rauth library. Specifically, it is not parsing correctly the response you provide:
However, based on that error message it appears that I am not providing the string you expect. I have not updated rauth, so I assume it is producing the same base string as before. The only thing I can imagine is that the signature expectation changed on your end? Anyways, I am currently working on seeing what signature base string |
Hi, We have fixed it. Basically the response code of the server has changed and the OAuthRequester.php wasn't parsing the regex properly. Will post the solution probs today or tomorrow. |
I was also able to fix my issue. Once I was able to find what the signature string was that was being produced by the rauth library, I saw one minor difference. It was using While the Also, the api-explorer site is suffering the same bug. I will submit a pull request. |
In line 487 of OAuthRequester - I changed this line of code:
This was my solution - editing the ka_example php code posted here. |
Previously working code using OAuthRequester2 started to fail 2 weeks ago (Working for 1 year+)
PHP Notice: Undefined variable: code in /home/sville/public_html/khanmvc/controller/oauth-php/library/OAuthRequester.php on line 485
[15-Jul-2019 10:48:12 Asia/Manila] 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' in /home/sville/public_html/khanmvc/controller/oauth-php/library/OAuthRequester.php:258
Stack trace:
The text was updated successfully, but these errors were encountered: