For the past two days, my refresh token has been rejected as invalid. We refresh it once daily so it should not be expiring.
To remedy this yesterday I used the API Keys page in my account to manually generate new tokens, and have proved that my code was good by manually executing it to refresh the access tokens. But hours later when the code runs again on schedule, I’m getting “Invalid refresh token”.
Any ideas for me?
I’m using python sdk which is POSTing to /oath/v2/token
It looks like oauth.refresh() was changed from
return r._post(’/token/’, p, ‘/oauth/v2’, kwargs.pop(‘dwollaparse’, ‘dict’))
to
return r._post_without_token(’/token/’, p, kwargs, custompostfix=’/oauth/v2’)
since you’re no longer passing ‘dwollaparse’ as ‘dict’, _parse() is incorrectly processing the response as ‘dwolla’
pull request is up… I have no idea what other endpoints may suffer a similar fate.
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
7
Apologies for the inconvenience on this issue, and thanks for the contribution! We merged and updated those changes, but please let us know if you continue to experience issues with the SDK.