Requesting OAuth2 Access Token ERROR

364 views
Skip to first unread message

Ryan Castro

unread,
Jan 13, 2014, 2:52:59 PM1/13/14
to meetu...@googlegroups.com
When I request OAuth2 Authorization,  everything works fine.  I get no errors on my client_id or code.  When I request access token right afterward with same client_id and code, I get an error 400 - "invalid client_id"  Why would this happen when Meetup did not have a problem with the client_id when requesting authorization?





Doug Tangren

unread,
Jan 13, 2014, 3:42:13 PM1/13/14
to meetup-api
You can expect expect invalid client under a few conditions

if the client + code params don't match a previously request.
if the redirect_uri provided in the original request does not match the redirect_uri provided in the request for the access token

Can you verify if either of these conditions are not met?

Doug Tangren
Meetup Platform Engineer


On Mon, Jan 13, 2014 at 2:52 PM, Ryan Castro <r.ca...@hexcorp.com> wrote:
When I request OAuth2 Authorization,  everything works fine.  I get no errors on my client_id or code.  When I request access token right afterward with same client_id and code, I get an error 400 - "invalid client_id"  Why would this happen when Meetup did not have a problem with the client_id when requesting authorization?





--
--
You received this message because you are subscribed to the Google
Groups "Meetup API" group.
To unsubscribe from this group, send email to
meetup-api+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/meetup-api?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Meetup API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetup-api+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Castro

unread,
Jan 13, 2014, 5:21:32 PM1/13/14
to meetu...@googlegroups.com
I changed my redirect uri to match each other and am no longer getting any errors.  I am now just getting a blank page with no json response.  I'm not even being redirected to the uri.

Ryan Castro

unread,
Jan 13, 2014, 7:33:27 PM1/13/14
to meetu...@googlegroups.com
After making sure my redirect uri's match up,  I now do not get and invalid_client message.  I am now not getting redirected to the uri and getting a blank page instead with the following errors in my Magento exception & system log files...

MeetupBadRequestException: <p><b>400 HTTP Error:</b> Error bad request to https://secure.meetup.com/oauth2/access<br/>Details: i<br/>Problem: i</p>

2014-01-14T00:28:08+00:00 ERR (3): Warning: Illegal string offset 'details'  in /home/{USER}/public_html/lib/Meetup/MeetupExceptions.class.php on line 31
2014-01-14T00:28:08+00:00 ERR (3): Warning: Illegal string offset 'problem'  in /home/{USER}/public_html/lib/Meetup/MeetupExceptions.class.php on line 31



On Monday, January 13, 2014 12:42:13 PM UTC-8, Doug Tangren wrote:
Reply all
Reply to author
Forward
0 new messages