{"action":"opened","issue":{"url":"https://api.github.com/repos/idea2-platform/pepito-test/issues/157","repository_url":"https://api.github.com/repos/idea2-platform/pepito-test","labels_url":"https://api.github.com/repos/idea2-platform/pepito-test/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/idea2-platform/pepito-test/issues/157/comments","events_url":"https://api.github.com/repos/idea2-platform/pepito-test/issues/157/events","html_url":"https://github.com/idea2-platform/pepito-test/issues/157","id":168893001,"number":157,"title":"IP-4142. Google Contacts endpoint > No authentication header information","user":{"login":"idea2-pepito","id":20704124,"avatar_url":"https://avatars.githubusercontent.com/u/20704124?v=3","gravatar_id":"","url":"https://api.github.com/users/idea2-pepito","html_url":"https://github.com/idea2-pepito","followers_url":"https://api.github.com/users/idea2-pepito/followers","following_url":"https://api.github.com/users/idea2-pepito/following{/other_user}","gists_url":"https://api.github.com/users/idea2-pepito/gists{/gist_id}","starred_url":"https://api.github.com/users/idea2-pepito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idea2-pepito/subscriptions","organizations_url":"https://api.github.com/users/idea2-pepito/orgs","repos_url":"https://api.github.com/users/idea2-pepito/repos","events_url":"https://api.github.com/users/idea2-pepito/events{/privacy}","received_events_url":"https://api.github.com/users/idea2-pepito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lefunes","id":219467,"avatar_url":"https://avatars.githubusercontent.com/u/219467?v=3","gravatar_id":"","url":"https://api.github.com/users/lefunes","html_url":"https://github.com/lefunes","followers_url":"https://api.github.com/users/lefunes/followers","following_url":"https://api.github.com/users/lefunes/following{/other_user}","gists_url":"https://api.github.com/users/lefunes/gists{/gist_id}","starred_url":"https://api.github.com/users/lefunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefunes/subscriptions","organizations_url":"https://api.github.com/users/lefunes/orgs","repos_url":"https://api.github.com/users/lefunes/repos","events_url":"https://api.github.com/users/lefunes/events{/privacy}","received_events_url":"https://api.github.com/users/lefunes/received_events","type":"User","site_admin":false},"assignees":[{"login":"lefunes","id":219467,"avatar_url":"https://avatars.githubusercontent.com/u/219467?v=3","gravatar_id":"","url":"https://api.github.com/users/lefunes","html_url":"https://github.com/lefunes","followers_url":"https://api.github.com/users/lefunes/followers","following_url":"https://api.github.com/users/lefunes/following{/other_user}","gists_url":"https://api.github.com/users/lefunes/gists{/gist_id}","starred_url":"https://api.github.com/users/lefunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefunes/subscriptions","organizations_url":"https://api.github.com/users/lefunes/orgs","repos_url":"https://api.github.com/users/lefunes/repos","events_url":"https://api.github.com/users/lefunes/events{/privacy}","received_events_url":"https://api.github.com/users/lefunes/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-02T14:02:11Z","updated_at":"2016-08-02T14:02:11Z","closed_at":null,"body":"There are few error logs like the following one:\r\n\r\n```java\r\n\r\n» 29 Jul 2016 09:49:52.066  2016-07-29 12:49:52.007 <ins>0000 comp=endpoint level=DEBUG app=crm endpoint=googleContacts env=dev Checking user configuration <53a9dde9e4b064a430e5722e>\r\n» 29 Jul 2016 09:49:52.077  2016-07-29 12:49:52.008 </ins>0000 comp=endpoint level=DEBUG app=crm endpoint=googleContacts env=dev User configuration [53a9dde9e4b064a430e5722e] was found\r\n» 29 Jul 2016 09:49:52.080  2016-07-29 12:49:52.016 <ins>0000 comp=endpoint level=ERROR app=crm endpoint=googleContacts env=dev Failed delivery for (MessageId: ID-crm-googlecontacts-druq-1xr2s-48063-1469312960684-1-149030 on ExchangeId: ID-crm-googlecontacts-druq-1xr2s-48063-1469312960684-1-149029). Exhausted after delivery attempt: 4 caught: {\"error\":{\"code\":\"apiException\",\"name\":\"API exception\"},\"message\":\"Google API Exception <No authentication header information> code [-]\",\"additionalInfo\":{\"causeMessage\":\"No authentication header information\"},\"*_endpoint_exception_*\":true}\r\n\r\nMessage History\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\nRouteId              ProcessorId          Processor                                                                        Elapsed (ms)\r\n<g-contacts-polling> [g-contacts-polling] [timer://polling?delay=500&period=300000                                       ] [       679]\r\n[g-contacts-polling] [setHeader18       ] [setHeader[id_usr]                                                             ] [         0]\r\n[g-contacts-polling] [to32              ] [direct:pollingUser                                                            ] [       677]\r\n[g-contacts-polling] [setHeader19       ] [setHeader[i2ef-msg-userId]                                                    ] [         0]\r\n[g-contacts-polling] [log4              ] [log                                                                           ] [         0]\r\n[g-contacts-polling] [doTry3            ] [doTry                                                                         ] [       677]\r\n[g-contacts-polling] [bean43            ] [bean[com.idea2.integrations.endpoints.google.beans.GoogleUsersManager@e15a98] ] [         4]\r\n[g-contacts-polling] [to33              ] [direct:pollingCheckedUser                                                     ] [       672]\r\n[g-contacts-polling] [split2            ] [split[bean{com.idea2.integrations.endpoints.googlecontacts.beans.ContactsManag] [       672]\r\n\r\nExchange\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\nExchange[\r\n\tId                  ID-crm-googlecontacts-druq-1xr2s-48063-1469312960684-1-149029\r\n\tExchangePattern     InOnly\r\n\tHeaders             {breadcrumbId=ID-crm-googlecontacts-druq-1xr2s-48063-1469312960684-1-149023, CamelRedelivered=true, CamelRedeliveryCounter=3, CamelRedeliveryMaxCounter=3, firedTime=Fri Jul 29 12:49:51 UTC 2016, i2ef-ds-filter={}, i2ef-ds-result=(...), i2ef-msg-userId=53a9dde9e4b064a430e5722e, id*tm=1613, id*usr=0, valid-google-user-configuration=true}\r\n\tBodyType            com.idea2.integrations.utils.Json\r\n\tBody                {\"_id\":\"53a9dde9e4b064a430e5722e\",.....}\r\n]\r\n\r\nStacktrace\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\n, {\"error\":{\"code\":\"apiException\",\"name\":\"API exception\"},\"message\":\"Google API Exception <No authentication header information> code [-]\",\"additionalInfo\":{\"causeMessage\":\"No authentication header information\"},\"*_endpoint_exception_*\":true}\r\n\tat com.idea2.integrations.endpoints.services.rest.exceptions.RestException.fromException(RestException.java:142)\r\n\tat com.idea2.integrations.endpoints.google.entities.ApiException.generate(ApiException.java:58)\r\n\tat com.idea2.integrations.endpoints.google.entities.ApiException.generate(ApiException.java:25)\r\n\tat com.idea2.integrations.endpoints.google.services.GoogleContactsService.findContacts(GoogleContactsService.java:129)\r\n\tat com.idea2.integrations.endpoints.googlecontacts.beans.ContactsManager.syncUserContacts(ContactsManager.java:198)\r\n\tat sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:408)\r\n\tat org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:279)\r\n\tat org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:252)\r\n\tat org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:171)\r\n\tat org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)\r\n\tat org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:68)\r\n\tat org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:194)\r\n\tat org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:123)\r\n\tat org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:132)\r\n\tat org.apache.camel.processor.Splitter.createProcessorExchangePairs(Splitter.java:109)\r\n\tat org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:220)\r\n\tat org.apache.camel.processor.Splitter.process(Splitter.java:104)\r\n\tat org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)\r\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)\r\n\tat org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)\r\n\tat org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:118)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:80)\r\n\tat org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113)\r\n\tat org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84)\r\n\tat org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:118)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:80)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)\r\n\tat org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)\r\n\tat org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)\r\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:118)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:80)\r\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:652)\r\n\tat org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:580)\r\n\tat org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:227)\r\n\tat org.apache.camel.processor.Splitter.process(Splitter.java:104)\r\n\tat org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)\r\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:118)\r\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:80)\r\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)\r\n\tat org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:165)\r\n\tat org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:73)\r\n\tat java.util.TimerThread.mainLoop(Timer.java:555)\r\n\tat java.util.TimerThread.run(Timer.java:505)\r\nCaused by: java.lang.NullPointerException: No authentication header information\r\n\tat com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96)\r\n\tat com.google.gdata.util.AuthenticationException.<init>(AuthenticationException.java:67)\r\n\tat com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:608)\r\n\tat com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)\r\n\tat com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)\r\n\tat com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)\r\n\tat com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)\r\n\tat com.google.gdata.client.Service.getFeed(Service.java:1135)\r\n\tat com.google.gdata.client.Service.getFeed(Service.java:1077)\r\n\tat com.google.gdata.client.GoogleService.getFeed(GoogleService.java:676)\r\n\tat com.google.gdata.client.Service.getFeed(Service.java:1034)\r\n\tat com.idea2.integrations.endpoints.google.services.GoogleContactsService.findContacts(GoogleContactsService.java:122)\r\n\t... 56 more\r\n» 29 Jul 2016 09:49:52.080  2016-07-29 12:49:52.017 </ins>0000 comp=endpoint level=INFO app=crm endpoint=googleContacts env=dev <1613>[0] - Error when try to update credentials\r\n» 29 Jul 2016 09:49:52.187  2016-07-29 12:49:52.017 <ins>0000 comp=endpoint level=INFO app=crm endpoint=googleContacts env=dev [1613][1] User [566eb812e4b02c99597eec54]\r\n» 29 Jul 2016 09:49:52.187  2016-07-29 12:49:52.017 </ins>0000 comp=endpoint level=DEBUG app=crm endpoint=googleContacts env=dev Checking user configuration [566eb812e4b02c99597eec54]\r\n```\r\n\r\nIt seems to be an old issue on the GData library with the Agent-User header: \r\n\r\n- http://stackoverflow.com/questions/26286369/google-contacts-api-failing-to-refresh-access-token/26466985#26466985\r\n- http://stackoverflow.com/questions/14350971/google-apps-profiles-api-java-lang-nullpointerexception-no-authentication-head"}}
{"actor":{"display_login":"idea2-pepito"}}