venmo / venmo-ios-sdk

Make and accept payments in your iOS app via Venmo
MIT License
178 stars 57 forks source link

Getting a 248: Invalid Auth Request Key error #38

Closed andrewjl closed 10 years ago

andrewjl commented 10 years ago

I'm trying to request user permissions using the SDK and am getting a 248 error. The problem occurs in -startLoading of VENURLProtocol

    NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];

I'm getting a 400 response. A likely culprit is a bad URL. Here's my URL (it looks valid) https://api.venmo.com/v1/oauth/access_token

there's also a valid post string (stripped the app id, secret, and code)

client_id=<MY ID>client_secret=<MY APP SECRET>&code=<VALID VENMO CODE>

The URL does not look malformed to me and the post string looks fine too. I checked to make sure my app id and secret match up.

Do you have any ideas? Thanks.

ayanonagon commented 10 years ago

Really sorry for the late reply here. I'm not sure if you've already figured it out, but did you mean to have: client_id=<MY ID>&client_secret=<MY APP SECRET>&code=<VALID VENMO CODE> (with the ? between <MY ID> and client_secret?

ayanonagon commented 10 years ago

Closing this for now. Feel free to re-open if you have any followup questions!