aboullaite / SpringBot

Messenger Bot that, based on typed text, query spring documentation and return 3 first results
29 stars 50 forks source link

Invalid OAuth access token #2

Closed arijitban6 closed 7 years ago

arijitban6 commented 7 years ago

2017-09-19T16:22:04.123813+00:00 app[web.1]: 2017-09-19 16:22:04.123 INFO 4 --- [io-38151-exec-8] me.aboullaite.CallBackHandler : Received message 'mid.$cAAD23r3nJL5kzDeSMFemvJA1a1WO' with text 'yo' from user '1262437320552104' at 'Tue Sep 19 16:22:03 UTC 2017' 2017-09-19T16:22:04.254743+00:00 app[web.1]: 2017-09-19 16:22:04.253 ERROR 4 --- [io-38151-exec-8] me.aboullaite.CallBackHandler : Message could not be sent. An unexpected error occurred. 2017-09-19T16:22:04.254745+00:00 app[web.1]: 2017-09-19T16:22:04.254746+00:00 app[web.1]: com.github.messenger4j.exceptions.MessengerApiException: Invalid OAuth access token. 2017-09-19T16:22:04.254747+00:00 app[web.1]: at com.github.messenger4j.exceptions.MessengerApiException.fromJson(MessengerApiException.java:38) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254748+00:00 app[web.1]: at com.github.messenger4j.common.MessengerRestClientAbstract.doRequest(MessengerRestClientAbstract.java:40) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254749+00:00 app[web.1]: at com.github.messenger4j.send.MessengerSendClientImpl.sendPayload(MessengerSendClientImpl.java:300) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254750+00:00 app[web.1]: at com.github.messenger4j.send.MessengerSendClientImpl.sendTextMessage(MessengerSendClientImpl.java:108) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254750+00:00 app[web.1]: at me.aboullaite.CallBackHandler.sendTextMessage(CallBackHandler.java:377) [classes!/:0.0.1-SNAPSHOT] 2017-09-19T16:22:04.254751+00:00 app[web.1]: at me.aboullaite.CallBackHandler.lambda$newTextMessageEventHandler$0(CallBackHandler.java:134) [classes!/:0.0.1-SNAPSHOT] 2017-09-19T16:22:04.254752+00:00 app[web.1]: at com.github.messenger4j.receive.callers.EventHandlerCaller.callHandlerIfResponsibleForEvent(EventHandlerCaller.java:76) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254753+00:00 app[web.1]: at com.github.messenger4j.receive.MessengerReceiveClientImpl.processMessagingEvent(MessengerReceiveClientImpl.java:158) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254754+00:00 app[web.1]: at com.github.messenger4j.receive.MessengerReceiveClientImpl.processEntry(MessengerReceiveClientImpl.java:151) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254755+00:00 app[web.1]: at com.github.messenger4j.receive.MessengerReceiveClientImpl.processCallbackPayload(MessengerReceiveClientImpl.java:144) ~[messenger4j-0.8.0.jar!/:na] 2017-09-19T16:22:04.254756+00:00 app[web.1]: at me.aboullaite.CallBackHandler.handleCallback(CallBackHandler.java:108) [classes!/:0.0.1-SNAPSHOT] 2017-09-19T16:22:04.254756+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254757+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254758+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254759+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254759+00:00 app[web.1]: at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254760+00:00 app[web.1]: at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254761+00:00 app[web.1]: at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254762+00:00 app[web.1]: at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254763+00:00 app[web.1]: at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254764+00:00 app[web.1]: at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254764+00:00 app[web.1]: at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254765+00:00 app[web.1]: at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254766+00:00 app[web.1]: at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254767+00:00 app[web.1]: at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254767+00:00 app[web.1]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254768+00:00 app[web.1]: at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254769+00:00 app[web.1]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254773+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254773+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254774+00:00 app[web.1]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254775+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254776+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254776+00:00 app[web.1]: at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254777+00:00 app[web.1]: at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254778+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254778+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254779+00:00 app[web.1]: at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254780+00:00 app[web.1]: at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254780+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254781+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254782+00:00 app[web.1]: at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254782+00:00 app[web.1]: at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254783+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254785+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254785+00:00 app[web.1]: at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254786+00:00 app[web.1]: at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE] 2017-09-19T16:22:04.254786+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254787+00:00 app[web.1]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254787+00:00 app[web.1]: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254788+00:00 app[web.1]: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254788+00:00 app[web.1]: at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254789+00:00 app[web.1]: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254789+00:00 app[web.1]: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254790+00:00 app[web.1]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254790+00:00 app[web.1]: at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254791+00:00 app[web.1]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254793+00:00 app[web.1]: at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254794+00:00 app[web.1]: at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254794+00:00 app[web.1]: at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254794+00:00 app[web.1]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254795+00:00 app[web.1]: at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254795+00:00 app[web.1]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254796+00:00 app[web.1]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254796+00:00 app[web.1]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11] 2017-09-19T16:22:04.254797+00:00 app[web.1]: at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_144-heroku16] 2017-09-19T16:22:04.254797+00:00 app[web.1]: 2017-09-19T16:22:04.256049+00:00 heroku[router]: at=info method=POST path="/callback" host=messenger-chat-bot-v01.herokuapp.com request_id=57ef6f32-073b-4e04-bd8a-9ab2b2b46575 fwd="173.252.98.211" dyno=web.1 connect=0ms service=137ms status=200 bytes=92 protocol=https