You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Do the same like in you socialauth-spring-demo example
2. Change "socialauth.do?id=google" to "socialauth.do?id=googleplus"
3. Login to my google accounts
4. It returned some profile information but failed to parse the contacts.
What is the expected output? What do you see instead?
Expect: contacts list
Instead:
exception
org.springframework.web.util.NestedServletException: Request processing failed;
nested exception is org.brickred.socialauth.exception.ServerDataException:
Failed to parse the contacts from
response.https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
org.brickred.socialauth.exception.ServerDataException: Failed to parse the
contacts from
response.https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
org.brickred.socialauth.provider.GooglePlusImpl.getContactList(GooglePlusImpl.java:303)
pl.sintraconsulting.controller.SuccessController.getRedirectURL(SuccessController.java:31)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:483)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.io.IOException: Server returned HTTP response code: 403 for URL:
https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
org.brickred.socialauth.util.Response.getInputStream(Response.java:67)
org.brickred.socialauth.provider.GooglePlusImpl.getContactList(GooglePlusImpl.java:301)
pl.sintraconsulting.controller.SuccessController.getRedirectURL(SuccessController.java:31)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:483)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
What version of the product are you using? On what operating system?
socialauth 4.7, socialauth-spring 2.6
Please provide any additional information below.
I have already added Contacts Api to my project,
consumer key and secret are set up like this:
googleapis.com.consumer_key = XXXXX
googleapis.com.consumer_secret = XXXXXX
Original issue reported on code.google.com by [email protected] on 23 Feb 2015 at 9:54
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 23 Feb 2015 at 9:54The text was updated successfully, but these errors were encountered: