Hi Stanton Will give it a try. OAuth has always been difficult to debug :-)
-Venkat On Wed, Apr 30, 2014 at 3:58 PM, Stanton Sievers <ssiev...@apache.org>wrote: > Hi Venkat, > > There's not much more logging you can enable on the Shindig side of things > from what I can see. If you can inspect the HTTP traffic from the Shindig > box using Wireshark or something like Fiddler, that might be your best bet. > > I did notice that the response from Zend has a Content-Length of 0, so it > might be worth trying to debug on the Zend side of things to start. > Unfortunately I'm not familiar with Zend at all, so I can't be much help > there. > > Best regards, > -Stanton > > > On Wed, Apr 30, 2014 at 3:30 PM, Venkat <neu...@gmail.com> wrote: > > > Hi > > > > I have a PHP application which uses Zend for OAuth. i am using Shindig > > 2.0.0 (java) and have a gadget which uses OAuth to talk to this php > > application. i am errors in the Shindig logs (below) > > > > How do I go about debugging this? Any help would be great. > > > > Thanks > > Venkat > > > > > > > > > > > > ==== Original request: > > GET /test/resttest.php?m=Meetings&session_id= > > > > Host: vm.abc.com > > X-Shindig-AuthType: oauth > > X-Forwarded-For: 10.146.12.72 > > X-shindig-dos: on > > > > > > ==== > > ==== Sent request 1: > > POST /service/v4/rest.php?method=oauth_access_token > > > > Host: vm.abc.com > > X-Shindig-AuthType: none > > Authorization: OAuth oauth_token="6d89da443cd4", oauth_version="1.0", > > oauth_timestamp="1398885413", oauth_nonce="8206820325169320025", > > oauth_consumer_key="ConsumerKey123", oauth_signature_method="HMAC-SHA1", > > oauth_signature="ersfrHiFYOwusTxbdxTnksRtCP4%3D" > > Content-Type: application/x-www-form-urlencoded > > X-shindig-dos: on > > > > > > ==== Received response 1: > > HTTP/1.1 200 > > > > Connection: close > > Content-Length: 0 > > Content-Type: text/html; charset=UTF-8 > > Date: Wed, 30 Apr 2014 19:16:53 GMT > > Server: Apache/2.2.15 (Red Hat) > > X-Powered-By: PHP/5.3.3 > > > > > > > > ==== > > [MISSING_OAUTH_PARAMETER,No oauth_token returned from service provider] > > at > > > > > org.apache.shindig.gadgets.oauth.OAuthRequest.sendOAuthMessage(OAuthRequest.java:638) > > at > > > > > org.apache.shindig.gadgets.oauth.OAuthRequest.exchangeRequestToken(OAuthRequest.java:762) > > at > > > > > org.apache.shindig.gadgets.oauth.OAuthRequest.attemptFetch(OAuthRequest.java:296) > > at > > > > > org.apache.shindig.gadgets.oauth.OAuthRequest.fetchWithRetry(OAuthRequest.java:240) > > at > > > > > org.apache.shindig.gadgets.oauth.OAuthRequest.fetchNoThrow(OAuthRequest.java:197) > > at > > > org.apache.shindig.gadgets.oauth.OAuthRequest.fetch(OAuthRequest.java:178) > > at > > > > > org.apache.shindig.gadgets.http.DefaultRequestPipeline.execute(DefaultRequestPipeline.java:93) > > at > > > > > org.apache.shindig.gadgets.servlet.MakeRequestHandler.fetch(MakeRequestHandler.java:91) > > at > > > > > org.apache.shindig.gadgets.servlet.MakeRequestServlet.doGet(MakeRequestServlet.java:57) > > at > > > > > org.apache.shindig.gadgets.servlet.MakeRequestServlet.doPost(MakeRequestServlet.java:70) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > > at > > > > > org.apache.shindig.auth.AuthenticationServletFilter.callChain(AuthenticationServletFilter.java:124) > > at > > > > > org.apache.shindig.auth.AuthenticationServletFilter.doFilter(AuthenticationServletFilter.java:87) > > 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.Http11AprProcessor.process(Http11AprProcessor.java:861) > > at > > > > > org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) > > at > > > > > org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2087) > > at > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > at > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > at java.lang.Thread.run(Thread.java:662) > > >