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

Proxy issue #207

Closed
SaratKumarM opened this issue Dec 23, 2011 · 1 comment
Closed

Proxy issue #207

SaratKumarM opened this issue Dec 23, 2011 · 1 comment

Comments

@SaratKumarM
Copy link

I am using scribe library to write a sample Facebook application :). I am trying to access "facebook graph" api using scribe utility . The main problem is that we were unable to access https://graph.facebook.com using the https protocol. I am behind a firewall & I mention the proxyserver details but I am unable to connect facebook graph api :)

I see below exception :

org.scribe.exceptions.OAuthException: Problems while creating connection
at org.scribe.model.Request.send(Request.java:62)
at org.scribe.model.OAuthRequest.send(OAuthRequest.java:1)
at test.social.context.oauth.OAuthImpl.send(OAuthImpl.java:284)
at test.social.context.oauth.OAuthImpl.send(OAuthImpl.java:259)
at test.social.context.oauth.OAuthImpl.sendGetRequest(OAuthImpl.java:235)
at test.social.context.facebook.FacebookImpl.getCurrentAccount(FacebookImpl.java:72)
at test.social.context.facebook.FBFrontDoorServlet.doPost(FBFrontDoorServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1517)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)

Please help me to resolve this issue .

@fernandezpablo85
Copy link
Collaborator

Your proxy is returning bad request. Perhaps it's because of SSL? I'm not sure about this but you should definitely talk with your network administrator, this is an issue on your network and not on scribe, sorry.

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

2 participants