ballerine-io / ballerine

Open-source infrastructure and data orchestration platform for risk decisioning

Home Page:https://www.ballerine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

phken91 opened this issue · comments

commented

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 [�[31merror�[39m] : �[31mPrisma validation failed.�[39m
[0] �[31m �[39m
[0] �[31m�[31mInvalid �[1m`this.prisma.workflowRuntimeData.findFirstOrThrow()`�[22m invocation in�[31m�[39m
[0] �[31m�[4m/Users/ken/Workplace/test/ekyc/services/workflows-service/src/workflow/workflow-runtime-data.repository.ts:66:50�[24m�[39m
[0] �[31m  �[2m�[90m63�[31m   args�[38;2;107;139;140m:�[31m Prisma�[38;2;107;139;140m.�[31mSelectSubset<T�[38;2;107;139;140m,�[31m Omit<Prisma�[38;2;107;139;140m.�[31mWorkflowRuntimeDataFindFirstOrThrowArgs�[38;2;107;139;140m,�[31m �[92m'where'�[31m>>�[38;2;107;139;140m,�[31m�[22m�[39m
[0] �[31m  �[2m�[90m64�[31m   projectIds�[38;2;107;139;140m:�[31m TProjectIds�[38;2;107;139;140m,�[31m�[22m�[39m
[0] �[31m  �[2m�[90m65�[31m �[38;2;107;139;140m)�[31m�[38;2;107;139;140m:�[31m Promise<WorkflowRuntimeData> �[38;2;107;139;140m{�[31m�[22m�[39m
[0] �[31m�[1m�[31m→�[31m�[22m �[2m�[90m66�[31m   �[36mreturn�[31m �[36mawait�[31m �[36mthis�[31m�[38;2;107;139;140m.�[31mprisma�[38;2;107;139;140m.�[31mworkflowRuntimeData�[38;2;107;139;140m.�[31m�[36mfindFirstOrThrow�[31m�[38;2;107;139;140m(�[31m�[22m{�[39m
[0] �[31m         where: {�[39m
[0] �[31m           id: "clob7e0jm00039xreasnx9ykz",�[39m
[0] �[31m           projectId: {�[39m
[0] �[31m             in: null�[39m
[0] �[31m           }�[39m
[0] �[31m           �[91m~~~~~~~~~~�[31m�[39m
[0] �[31m         }�[39m
[0] �[31m       }�[2m)�[22m�[39m
[0] �[31mArgument `�[1mprojectId�[22m`: Invalid value provided. Expected �[92mString�[31m, provided �[91mObject�[31m.�[39m {
[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

  • Node version: 18
  • Device, operating system and its version: Macos + Docker
    *
  • Browser and its version: Chrome 118.0.5993.117
    *
  • Version of the affected apps and packages:
    *

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

fixed in the current version