Skip to content

Trim spaces in Proof ID for verification #1231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kirti763
Copy link

This pull request addresses an issue where spaces before a proof ID were causing a 500 error during verification. The issue was fixed by trimming any leading from the provided proof ID before it is used in the verification process.

Changes made:

  • Trimmed spaces from the proofId before calling the verification service.
  • Updated verification logic to handle proof ID correctly, even if a space is included before it.

Issue Reference:

Copy link

@bhavanakarwade
Copy link
Contributor

Hello @kirti763, Thanks for your interest.
We will review your PR. And let you know.

@kirti763
Copy link
Author

kirti763 commented Jun 2, 2025

Hey @bhavanakarwade just checking in. Are there any updates regarding my PR

@GHkrishna
Copy link
Contributor

Hello @kirti763

Apologies for the delay, there were some releases we were working on which, required not merging PR.

Just a small request, do you mind creating a PR, against the devlop branch?

@Param('orgId') orgId: string
): Promise<Response> {
const proofID = rawProofID.trim();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a trim, we can utilize the already present validation pipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: Trim spaces in parameters of the verify presentation API
3 participants