Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

PostgreSQL type errors #23

Description

@janpio

When using prisma-test-utils via prisma-test-utils-automation, some databases (schemas from: https://github.com/prisma/database-schema-examples) fail with this error message:

Error in: aragon-notification-service
PrismaClientUnknownRequestError:
Invalid `: new eventsourcesClient()` invocation in
C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\aragon-notification-service\node_modules\prisma-client\index.js:541:7

   537   args || {},
   538   [],
   539   errorFormat,
   540   measurePerformance
→  541 ) : new eventsourcesClient

Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: ToSql(0), cause: Some(WrongType { postgres: Type(Jsonb), rust: "alloc::borrow::Cow<str>" }) }) })
    at PrismaClientFetcher.request (C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\aragon-notification-service\node_modules\prisma-client\index.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Error in: basic-twitter
PrismaClientUnknownRequestError:
Invalid `: new locationsClient()` invocation in
C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\basic-twitter\node_modules\prisma-client\index.js:497:7

  493   args || {},
  494   [],
  495   errorFormat,
  496   measurePerformance
→ 497 ) : new locationsClient

Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: ToSql(0), cause: Some(WrongType { postgres: Type(Uuid), rust: "alloc::borrow::Cow<str>" }) }) })
    at PrismaClientFetcher.request (C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\basic-twitter\node_modules\prisma-client\index.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Error in: niko-public-1
PrismaClientUnknownRequestError:
Invalid `: new postsClient()` invocation in
C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\niko-public-1\node_modules\prisma-client\index.js:776:7

   772   args || {},
   773   [],
   774   errorFormat,
   775   measurePerformance
→  776 ) : new postsClient

Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: ToSql(1), cause: Some(WrongType { postgres: Type(Timestamptz), rust: "chrono::naive::datetime::NaiveDateTime" }) }) })
    at PrismaClientFetcher.request (C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\niko-public-1\node_modules\prisma-client\index.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions