Skip to content

BE2: No error displayed when a client fails to create #75

@chrisvire

Description

@chrisvire

In BE1, if you try to create a client, it won't let you enter more that 4 characters for the prefix.
In BE2, there is no limit, but clicking Create does nothing if there are more than 4 characters.

I see this in the browser log:

fetcher.js?v=52872927:66
POST http://localhost:8443/client-admin/create 500 (Internal Server Error)

This is in the server console:

[500] POST /client-admin/create
PrismaClientKnownRequestError:
Invalid `prisma.client.create()` invocation:


The provided value for the column is too long for the column's type. Column: (not available)
    at ei.handleRequestError (node_modules/@prisma/client/runtime/library.js:121:7283)
    at ei.handleAndLogRequestError (node_modules/@prisma/client/runtime/library.js:121:6608)
    at ei.request (node_modules/@prisma/client/runtime/library.js:121:6315)
    at async a (node_modules/@prisma/client/runtime/library.js:130:9551)
    at async default (src/routes/(ui)/client-admin/create/+page.server.ts:19:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions