sachin-handiekar/jInstagram

nested exception is org.jinstagram.auth.exceptions.OAuthException: Cannot extract an acces token

catinwarmhands opened this issue · 5 comments

Im getting this error after redirect from instagram login page
This error also occurs on http://jinstagram-sachinhandiekar.rhcloud.com/BasicWebDemo/

Screenshots:
(BasicWebDemo) http://pasteboard.co/1FCcrO2A.png
(My site) http://pasteboard.co/1FBWMdNW.png

Same thing here. This is due to the fact that Instagram API returns a white space between the "access_token" key and value as such "access_token": "1231231231231". The regex that is supposed to match that fails since it assumes there is no whitespace.

Should I make a quick fix PR? In the future should we not use regex but instead some JSON parsing?

Can you fix it?

Like this #152

Thanks you a lot!

Fixed in #151... Closing this issue.