ncstate-delta / moodle-mod_zoom

Moodle plugin for Zoom meeting
https://moodle.org/plugins/mod_zoom
61 stars 108 forks source link

Issue "Connection status: Connection failed: No access token returned" #589

Open kikocalvin opened 5 months ago

kikocalvin commented 5 months ago

Hi I have installed the plugin and followed the instructions with granular scopes configuration. I cannot get the working, and keeps sending the message "Connection status: Connection failed: No access token returned"

Any idea on how to solve the problem?

Thanks a lot!!

jrchamp commented 5 months ago

That happens when the access_token in the JSON-encoded response from the OAuth token request is empty. Sometimes I think it takes an hour or so before the apps become active. Unless you made manual adjustments, Granular Scopes will probably complain that the required scopes are missing (because we're still working on fixing #583 .

kikocalvin commented 5 months ago

Thanks jrchamp . I have no complains from the granular scopes. I just get the message of connection status.

Captura de pantalla 2024-04-22 a las 18 37 13
jrchamp commented 5 months ago

If you go to line 1140 in classes/webservice.php, you should see: https://github.com/ncstate-delta/moodle-mod_zoom/blob/0e35c566a7a8f2244ff9cc99fff0bdad9b8608d8/classes/webservice.php#L1140 Immediately after, you can add this to see what the response is that you are getting back:

echo '<pre>' . htmlspecialchars(var_export($response, true)) . '</pre>';

You can use the same line of code after line 1146 if you want to see the structured view: https://github.com/ncstate-delta/moodle-mod_zoom/blob/0e35c566a7a8f2244ff9cc99fff0bdad9b8608d8/classes/webservice.php#L1146