Facing `invalid_proof` Error in MOSIP Certify API `/v1/certify/issuance/credential

Hi everyone,

I’m working with the MOSIP Certify API to issue credentials, but I’ve hit a roadblock. When I make a POST request to the endpoint:

http://localhost:8090/v1/certify/issuance/credential

I get the following error response:

{
    "error": "invalid_proof",
    "error_description": "invalid_proof"
}

The server logs show this stack trace:

2024-11-13 22:47:55 {"@timestamp":"2024-11-13T17:17:55.154Z","@version":"1","message":"Unhandled exception encountered in handler advice","logger_name":"io.mosip.certify.advice.ExceptionHandlerAdvice","thread_name":"http-nio-8090-exec-6","level":"ERROR","level_value":40000,"stack_trace":"io.mosip.certify.core.exception.CertifyException: invalid_proof\n\tat io.mosip.certify.services.VCIssuanceServiceImpl.getCredential(VCIssuanceServiceImpl.java:99)\n\tat io.mosip.certify.controller.VCIssuanceController.getCredential(VCIssuanceController.java:43)\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)\n\tat java.base/java.lang.reflect.Method.invoke(Unknown Source)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:259)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:192)\n\tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:920)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInterna...

It seems like the error originates from VCIssuanceServiceImpl.java:99.

If anyone has any insights or suggestions on how to debug or fix this, I’d really appreciate the help!

Hi @Somnath_Bera ,

Thank you for contacting us. We are looking into this issue, and one of our experts will reply shortly.

Best Regards,
Team MOSIP

Hi @Somnath_Bera ,
Can i get a clarification if it is sunbird setup or mosip-mock-identity setup?
And also can you share logs if you have them handy

Hi @jainhitesh9998 ,

It was mosip-mock-identity setup.
The issue has been resolved, and VC is now being issued properly. The problem was due to a misconfigured audurl.
Thanks for your assistance!

2 Likes

Hi @Somnath_Bera,

Thank you for confirming that the issue has been resolved. If you encounter any other issues, please don’t hesitate to reach out to us.

Regards,
Team MOSIP