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

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

Open
kikocalvin opened this issue Apr 22, 2024 · 3 comments
Open
Labels
more information needed Need more information from user

Comments

@kikocalvin
Copy link

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
Copy link
Collaborator

jrchamp commented Apr 22, 2024

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 .

@jrchamp jrchamp added the more information needed Need more information from user label Apr 22, 2024
@kikocalvin
Copy link
Author

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
Copy link
Collaborator

jrchamp commented Apr 22, 2024

  • Is it set up as a Server-to-Server OAuth app? It won't work with a plain OAuth app.
  • Would you be willing to modify the code to help debug?

If you go to line 1140 in classes/webservice.php, you should see:

$response = $this->make_curl_call($curl, 'post', 'https://zoom.us/oauth/token', $data);

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:

$response = json_decode($response);

@jrchamp jrchamp moved this to Needs triage in mod_zoom Workflow May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information needed Need more information from user
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants