ID-authentication authentication-internal-service websub subscribing error

Hello,

i working on ID-authentication-internal release 1.2.0.1, i have the bellow issue on websub subscribing. websub hub is up .

io.mosip.kernel.websub.api.client.PublisherClientImpl: Error occured while registering topic to hub :- hub.mode=denied&hub.reason=Something wrong with the connection
2022-12-22 14:33:49,339 INFO [task-scheduler-3] io.mosip.kernel.logger.logback.impl.Slf4jLoggerImpl: sessionId - tryRegisterTopicHotlistEvent - class io.mosip.kernel.websub.api.exception.WebSubClientException - Error registering topic: CREDENTIAL_STATUS_UPDATE
KER-WSC-101 → Error occured while registering topic to hub :- Something wrong with the connection
2022-12-22 14:33:49,339 INFO [task-scheduler-1] io.mosip.kernel.logger.logback.impl.Slf4jLoggerImpl: sessionId - subscribeForCredentialIssueanceEvents - class io.mosip.kernel.websub.api.exception.WebSubClientException - Error subscribing topic: mpartner-default-auth/CREDENTIAL_ISSUED
KER-WSC-105 → Error occured while subscribing at hub :- hub.mode=denied&hub.reason=Something wrong with the connection
2022-12-22 14:33:49,365 INFO [task-scheduler-3] io.mosip.kernel.logger.logback.impl.Slf4jLoggerImpl: sessionId - doRegister - AuthTypeStatusEventPublisher - Registering hotlist event topic…
2022-12-22 14:33:49,394 ERROR [task-scheduler-1] io.mosip.kernel.logger.logback.impl.Slf4jLoggerImpl: sessionId - subscribe - IdChangeEventsInitializer - io.mosip.kernel.websub.api.exception.WebSubClientException: KER-WSC-105 → Error occured while subscribing at hub :- hub.mode=denied&hub.reason=Something wrong with the connection
at io.mosip.kernel.websub.api.client.SubscriberClientImpl.subscribe(SubscriberClientImpl.java:87)
at io.mosip.kernel.websub.api.client.SubscriberClientImpl.subscribe(SubscriberClientImpl.java:49)
at io.mosip.authentication.common.service.helper.WebSubHelper.subscribe(WebSubHelper.java:202)
at io.mosip.authentication.common.service.helper.WebSubHelper$$FastClassBySpringCGLIB$$1fb47b36.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at io.mosip.authentication.common.service.helper.WebSubHelper$$EnhancerBySpringCGLIB$$b11b357a.subscribe()
at io.mosip.authentication.common.service.websub.impl.IdChangeEventsInitializer.lambda$subscribeForCredentialIssueanceEvents$1(IdChangeEventsInitializer.java:89)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
at io.mosip.authentication.common.service.websub.impl.IdChangeEventsInitializer.subscribeForCredentialIssueanceEvents(IdChangeEventsInitializer.java:79)
at io.mosip.authentication.common.service.websub.impl.IdChangeEventsInitializer.doSubscribe(IdChangeEventsInitializer.java:50)
at io.mosip.authentication.common.service.websub.impl.BaseWebSubEventsInitializer.subscribe(BaseWebSubEventsInitializer.java:51)
at io.mosip.authentication.common.service.websub.impl.BaseWebSubEventsInitializer$$FastClassBySpringCGLIB$$f929bf1c.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at io.mosip.kernel.core.retry.RetryAspect.lambda$processMethodsWithRetry$0(RetryAspect.java:42)
at io.mosip.kernel.core.util.RetryUtil.lambda$doWithRetry$0(RetryUtil.java:48)
at io.mosip.kernel.core.util.RetryUtil.lambda$doProcessWithRetry$3(RetryUtil.java:93)
at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)
at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:164)
at io.mosip.kernel.core.util.RetryUtil.doProcessWithRetry(RetryUtil.java:93)
at io.mosip.kernel.core.util.RetryUtil.doWithRetry(RetryUtil.java:48)
at io.mosip.kernel.core.retry.RetryAspect.processMethodsWithRetry(RetryAspect.java:42)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at io.mosip.authentication.common.service.websub.impl.IdChangeEventsInitializer$$EnhancerBySpringCGLIB$$ecb53c89.subscribe()
at io.mosip.authentication.common.service.helper.WebSubHelper.initSubscriber(WebSubHelper.java:88)
at io.mosip.authentication.common.service.helper.WebSubHelper.initSubscriber(WebSubHelper.java:76)
at io.mosip.authentication.common.service.helper.WebSubHelper$$FastClassBySpringCGLIB$$1fb47b36.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at io.mosip.authentication.common.service.helper.WebSubHelper$$EnhancerBySpringCGLIB$$b11b357a.initSubscriber()
at io.mosip.authentication.internal.service.listener.InternalAuthIdChangeEventsWebSubInitializer.doInitSubscriptions(InternalAuthIdChangeEventsWebSubInitializer.java:26)
at io.mosip.authentication.common.service.websub.BaseIDAWebSubInitializer.initSubsriptions(BaseIDAWebSubInitializer.java:107)
at io.mosip.authentication.common.service.websub.BaseIDAWebSubInitializer.lambda$onApplicationEvent$0(BaseIDAWebSubInitializer.java:74)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Hi @nejib, I saw a similar post on the same issue, can you follow the conversion and share the requesed details here please ?

1 Like