Using this template helps us debug your issues more effectively
Description
I am trying to retrieve an oauth token via /oauth/token endpoint and am getting back a 200 response with no data. Zoom is calling an API I have written that takes the supplied authCode and attempts to generate a token, however I am not getting any response back from the zoom API following the guidelines here: https://marketplace.zoom.us/docs/guides/auth/oauth#step-2-request-access-token
Error
No data returned
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth
Which Endpoint/s?
/oauth/token
How To Reproduce (If applicable)
Steps to reproduce the behavior:
I am sending the following request:
HttpRequest{
method=POST,
uri=https://api.zoom.us/v2/oauth/token,
headers=[
Pair{Authorization=Basic [clientId:clientSecretBase64 encoded]},
Pair{Content-Type=application/x-www-form-urlencoded}
],
body=code=[authCode]&redirect_uri=[myRedirectURI]&grant_type=authorization_code
}
This is one example of the response I’m getting back
Additional context
I’ve tried just about everything I can think of to try and make this request work, but the API refuses to give me either an error code or any response body back so I’m really not sure what else I should be trying.
Hi @will.zoom, sorry if this gets posted twice, looks like my original reply might have been moderated?
It looks like in your example you’re passing query params, but the docs indicate those should be a body that is application/x-www-form-urlencoded. Will either work?
The server is written in java, here is a snippet of what the request looks like. See if anything looks off to you. Thanks so much for your help!
Just to follow up, I have tried the request as you’ve pasted here and I’m still seeing the same behavior. Some clarification:
The redirect_uri parameter should be my redirect uri that I have defined for my application correct? Not the zoom.us url you have listed
Is the expected behavior of the API that if an error is encountered I’ll get a 200 response with no body? Why am I not getting an error code in the response or some non 200 http response code?
The redirect_uri parameter should be my redirect uri that I have defined for my application correct? Not the zoom.us url you have listed
That’s right—I’m just using this as an example.
As for:
Is the expected behavior of the API that if an error is encountered I’ll get a 200 response with no body? Why am I not getting an error code in the response or some non 200 http response code?
This means something is likely still off with your request.
Have you tried sending this request in Postman, cURL, etc. to see if you run into the same issue?