Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchUserName() and java.io.FileNotFoundException #2

Open
slavkoder opened this issue Nov 8, 2012 · 3 comments
Open

fetchUserName() and java.io.FileNotFoundException #2

slavkoder opened this issue Nov 8, 2012 · 3 comments

Comments

@slavkoder
Copy link
Contributor

Hello,

I'm trying to use the library and I found a bug in fetchUserName() method - it fails with FileNotFoundException. However, it's easy to fix, just remove the line urlConnection.setDoOutput(true); from the method, because it forces POST request instead of GET.

Thank you for great job, the lib is of great help for me.

Best regards,
Slava Panasenko

@thiagolocatelli
Copy link
Owner

Thanks! you can actually submit a pull request and I will approve it with the code change.

@Testuser36
Copy link

Testuser36 commented Oct 25, 2017

Not working in my case.
Still getting

W/System.err: java.io.FileNotFoundException: [(https://api.instagram.com/oauth/access_token)]
W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:207)
W/System.err:     at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
W/System.err:     at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
W/System.err:     at shared.InstagramApp$3.run(InstagramApp.java:145)

W/System.err: at shared.InstagramApp$3.run(InstagramApp.java:145) :: String response = Util.streamToString(urlConnection
.getInputStream());

@pratikbutani
Copy link

Any Solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants