Certificates are not Generating #1004
Unanswered
Venkatesh-Dayani23
asked this question in
Issues
Replies: 2 comments 1 reply
|
Hi Venkatesh, This means the signer service is expecting a valid JSON credential template, but it is receiving invalid JSON content. Since the error starts after loading the template from cache: the possible causes are:
# Restart certificate-sign service after clearing cache
docker restart <certificate-sign-container>
# Check service logs
docker logs -f <certificate-sign-container>If the issue continues, please share:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Team,
Recently we have upgraded to Sunbird 5.1.0 after the upgrade the Certificates are not generating. Below are the error logs.
certificatesign error logs
Credential template loaded from cache │
│ SyntaxError: Unexpected token s in JSON at position 0 │
│ at JSON.parse () │
│ at generateCredentials (/app/src/services/signerService.js:41:33) │
│ at generateCredentialsRoute (/app/src/routes/signerController.js:27:18) │
│ at process.processTicksAndRejections (node:internal/process/task_queues:95:5) │
│ at async Server. (/app/main.js:17:32)
registry service logs
Caused by: dev.sunbirdrc.registry.exception.SignatureException$UnreachableException: Unable to reach service: 500 Internal Server E │
│ rror: [{"error": "Internal Server Error", "message": Unexpected token s in JSON at position 0}] │
│ at dev.sunbirdrc.registry.service.impl.SignatureServiceImpl.sign(SignatureServiceImpl.java:96) │
│ at dev.sunbirdrc.registry.service.impl.RegistryServiceImpl.generateCredentials(RegistryServiceImpl.java:253) │
│ at dev.sunbirdrc.registry.service.impl.RegistryServiceImpl.addEntity(RegistryServiceImpl.java:197) │
│ at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) │
│ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) │
│ at java.lang.reflect.Method.invoke(Method.java:498) │
│ at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) │
│ at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) │
│ at com.sun.proxy.$Proxy97.addEntity(Unknown Source) │
│ at dev.sunbirdrc.registry.helper.RegistryHelper.addEntity(RegistryHelper.java:253) │
│ ... 66 common frames omitted
cc: @raghupathiguduri
All reactions