avniproject / avni-server

Backend APIs for Avni
https://avniproject.org
GNU Affero General Public License v3.0
5 stars 25 forks source link

Bugsnag issue Gliffic Connect Exception #705

Closed mahalakshme closed 3 months ago

mahalakshme commented 3 months ago

https://app.bugsnag.com/samanvay-research-and-development-foundation/rwb/errors/65f03a6c76f7d40008e27375?i=em&m=fq

org.avni.messaging.domain.exception.GlificConnectException Cannot send hsm message to contact, invalid BSP status. 
    GlificRestClient.java:78 org.avni.messaging.external.GlificRestClient.makeCall
    GlificRestClient.java:62 org.avni.messaging.external.GlificRestClient.callAPI
    GlificRestClient.java:51 org.avni.messaging.external.GlificRestClient.callAPI
    GlificMessageRepository.java:23 org.avni.messaging.repository.GlificMessageRepository.sendMessageToContact
    <generated>:-1 org.avni.messaging.repository.GlificMessageRepository$$FastClassBySpringCGLIB$$2dad3d0f.invoke
    MethodProxy.java:204 org.springframework.cglib.proxy.MethodProxy.invoke
    CglibAopProxy.java:747 org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint
    ReflectiveMethodInvocation.java:163 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
    PersistenceExceptionTranslationInterceptor.java:139 org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke
    ReflectiveMethodInvocation.java:185 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
    CglibAopProxy.java:689 org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept
    <generated>:-1 org.avni.messaging.repository.GlificMessageRepository$$EnhancerBySpringCGLIB$$86a56dd.sendMessageToContact
    IndividualMessagingService.java:43 org.avni.messaging.service.IndividualMessagingService.ensureExternalIdPresenceAndSendMessage
    IndividualMessagingService.java:56 org.avni.messaging.service.IndividualMessagingService.sendAutomatedMessage
    MessagingService.java:174 org.avni.messaging.service.MessagingService.sendMessageToGlific
    MessagingService.java:133 org.avni.messaging.service.MessagingService.sendMessage
    Iterator.java:116 java.util.Iterator.forEachRemaining
    Spliterators.java:1801 java.util.Spliterators$IteratorSpliterator.forEachRemaining
    ReferencePipeline.java:647 java.util.stream.ReferencePipeline$Head.forEach
    MessagingService.java:157 org.avni.messaging.service.MessagingService.sendMessages
    <generated>:-1 org.avni.messaging.service.MessagingService$$FastClassBySpringCGLIB$$a16061e8.invoke
    MethodProxy.java:204 org.springframework.cglib.proxy.MethodProxy.invoke
    CglibAopProxy.java:747 org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint
    ReflectiveMethodInvocation.java:163 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
    TransactionAspectSupport.java:294 org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction
    TransactionInterceptor.java:98 org.springframework.transaction.interceptor.TransactionInterceptor.invoke
    ReflectiveMethodInvocation.java:185 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
    CglibAopProxy.java:689 org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept
    <generated>:-1 org.avni.messaging.service.MessagingService$$EnhancerBySpringCGLIB$$ee708548.sendMessages
    MessageSenderJob.java:57 org.avni.messaging.service.MessageSenderJob.sendMessages
    MessageSenderJob.java:46 org.avni.messaging.service.MessageSenderJob.sendMessages
    Unknown:-1 sun.reflect.GeneratedMethodAccessor943.invoke
    DelegatingMethodAccessorImpl.java:43 sun.reflect.DelegatingMethodAccessorImpl.invoke
    Method.java:498 java.lang.reflect.Method.invoke
    ScheduledMethodRunnable.java:65 org.springframework.scheduling.support.ScheduledMethodRunnable.run
    DelegatingErrorHandlingRunnable.java:54 org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run
    Executors.java:511 java.util.concurrent.Executors$RunnableAdapter.call
    FutureTask.java:308 java.util.concurrent.FutureTask.runAndReset
    ScheduledThreadPoolExecutor.java:180 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301
    ScheduledThreadPoolExecutor.java:294 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run
    ThreadPoolExecutor.java:1149 java.util.concurrent.ThreadPoolExecutor.runWorker
    ThreadPoolExecutor.java:624 java.util.concurrent.ThreadPoolExecutor$Worker.run
    Thread.java:750 java.lang.Thread.run
mahalakshme commented 3 months ago

unable to understand from the docs. awaiting their reply.

vinayvenu commented 3 months ago

It is ignored on bugsnag. This is an expected issue if the user has blocked the org.