-
Notifications
You must be signed in to change notification settings - Fork 133
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
remote agents returns VCs three times #1285
Comments
The method you are using based on the screenshot seems to be This is indeed a bug, as the method name suggests that credentials are returned, so they should be unique. The fix should be simple as the credentials can be grouped by hash here: https://github.com/decentralized-identity/veramo/blob/462735d138bc4984c0fcf3f72ca7d49e3187ceb7/packages/data-store/src/data-store-orm.ts#L205C36-L205C36 I think the bug doesn't appear in Do you have bandwidth to propose a PR with a fix? Also, what tool are you using to look at the database? perhaps we can suggest it as a debugging tool in our docs |
I think I can assign the issue to myself. I used an extension for vscode called sqltools |
Bug severity
5
Describe the bug
When using the remote agent plugin, each VC is included three times in the http response:
To Reproduce
Steps to reproduce the behaviour:
1 include the remote and client plugin
2 write a credential to the database
3 request it via the remote client
When I fetch the credentials directly in the backend code, I get two credentials back. So the problem is not in the
dataStoreORMGetVerifiableCredentials
, but in the usage when used via the remote call.Observed behaviour
Results do not match. I haven't checked if other functions behave the same or if it's only the dataStoreORMGetVerifiableCredentials call.
Expected behaviour
That the remote call returns the same result as the "normal" call.
Details
If applicable, add screenshots, error messages or stack traces to help explain your problem.
Additional context
Add any other context about the problem here.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: