ballerine-io / ballerine

Open-source infrastructure and data orchestration platform for risk decisioning
https://www.ballerine.com
Other
2.06k stars 190 forks source link

Bug - example kyc-manual-review-example is not working #1508

Closed phken91 closed 8 months ago

phken91 commented 11 months ago

Description

I'd like to try 'pnpm kyc-manual-review-example', but when I submit a KYC application at localhost:5173, the backend throws an error. The relevant error message is as follows:

2023-10-29T08:22:55.002Z [error] : Prisma validation failed.
[0]  
[0] Invalid `this.prisma.workflowRuntimeData.findFirstOrThrow()` invocation in
[0] /Users/ken/Workplace/test/ekyc/services/workflows-service/src/workflow/workflow-runtime-data.repository.ts:66:50
[0]   63   args: Prisma.SelectSubset<T, Omit<Prisma.WorkflowRuntimeDataFindFirstOrThrowArgs, 'where'>>,
[0]   64   projectIds: TProjectIds,
[0]   65 ): Promise<WorkflowRuntimeData> {
[0] → 66   return await this.prisma.workflowRuntimeData.findFirstOrThrow({
[0]          where: {
[0]            id: "clob7e0jm00039xreasnx9ykz",
[0]            projectId: {
[0]              in: null
[0]            }
[0]            ~~~~~~~~~~
[0]          }
[0]        })
[0] Argument `projectId`: Invalid value provided. Expected String, provided Object. {
[0]   "requestId": "7d88903f-a96d-4541-b369-305abbda96da",
[0]   "logData": {}
[0] }

Has the bug been reported before

N

Expected Behaviour

Successful submit KYC request to backend

Actual Behaviour

Nothing Happen, frontend no error msg

Environment

Steps to Reproduce

  1. git clone repo 2.pnpm install
  2. pnpm monorepo:init
  3. pnpm kyc-manual-review-example

If the bug is confirmed, would you be willing to submit a PR

N, because no idea how to fix it

Examples and references

full log in gist

alonp99 commented 8 months ago

fixed in the current version