title: Invalid `prisma.user.create()` invocation in
body: <p>I am registering a user through a POST request and storing it in the database using the prism in Node, the request is working, but when it executes the prisma function to register the new user with the information coming from the POST, it generates this error in the console:</p>
  <pre><code>PrismaClientUnknownRequestError: 
  Invalid `prisma.user.create()` invocation in
  </code></pre>
  <p>I did some tests with GET request and it was successful, so I think the problem is really in the function and its parameters, but I couldn't find anything divergent, here are some parts of the code for support, i'm using NodeJS with Typescript and PostgreSQL.</p>
  <p><strong>schema.prisma</strong></p>
  <pre><code>// This is your Prisma schema file,
  // learn more about it in the docs: https://pris.ly/d/prisma-schema
  
  generator client {
      provider = &quot;prisma-client-js&quot;
  }
  
  datasource db {
      provider = &quot;postgresql&quot;
      url      = env(&quot;DATABASE_URL&quot;)
  }
  
  model User {
      id             Int    @id @default(autoincrement())
      name           String
      birthDate      String
      email          String @unique
      password       String
      cpf            String
      street         String
      numberStreet   String
      district       String
      city           String
      zipCode        String
      numberTel      String
      numberCel      String
  }
  </code></pre>
  <p>registration function:</p>
  <pre><code>export class UserController {
    async store(req: Request, res: Response) {
      const {
        name,
        birthDate,
        email,
        password,
        cpf,
        street,
        numberStreet,
        district,
        city,
        zipCode,
        numberTel,
        numberCel,
      } = req.body;
      console.log(req.body)
      const user = await prisma.user.create({
        data: {
          name,
          birthDate,
          email,
          password,
          cpf,
          street,
          numberStreet,
          district,
          city,
          zipCode,
          numberTel,
          numberCel
        },
      });
  
      res.sendStatus(201);
      return res.json({user})
    }
  }
  </code></pre>
  <p>POST request I'm using to perform the registration:</p>
  <pre><code>http://localhost:3333/NewUser
  
  {
      &quot;name&quot;: &quot;Waguinho&quot;,
      &quot;birthDate&quot;: &quot;1992-02-12T11:24:59:3232&quot;,
      &quot;email&quot;: &quot;waguinho@gmail.com&quot;,
      &quot;password&quot;: &quot;123&quot;,
      &quot;cpf&quot;: &quot;1&quot;,
      &quot;street&quot;: &quot;1&quot;,
      &quot;numberStreet&quot;: &quot;1&quot;,
      &quot;district&quot;: &quot;1&quot;,
      &quot;city&quot;: &quot;1&quot;,
      &quot;zipCode&quot;: &quot;1&quot;,
      &quot;numberTel&quot;: &quot;1&quot;,
      &quot;numberCel&quot;: &quot;1&quot;
  }
  </code></pre>