Comments (1)
[wrangler:err] PrismaClientKnownRequestError:
Invalid `prisma.user.create()` invocation:
The required connected records were not found. Expected 1 records to be connected after connect operation on one-to-many relation 'PostToUser', found 2.
at or.handleRequestError (file:///workspace/prisma-23902/node_modules/@prisma/client/runtime/wasm.js:22:7128)
at or.handleAndLogRequestError (file:///workspace/prisma-23902/node_modules/@prisma/client/runtime/wasm.js:22:6462)
at or.request (file:///workspace/prisma-23902/node_modules/@prisma/client/runtime/wasm.js:22:6176)
at async f (file:///workspace/prisma-23902/node_modules/@prisma/client/runtime/wasm.js:27:11094)
at async Object.fetch (file:///workspace/prisma-23902/src/index.ts:18:18)
at async jsonError (file:///workspace/prisma-23902/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody (file:///workspace/prisma-23902/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
[wrangler:inf] GET / 500 Internal Server Error (153ms)
I believe this happens due to D1 returning the number of rows written, including writes to index tables... not actual written data rows.
This theory sounds plausible and should be investigated.
from prisma.
Related Issues (20)
- MongoDB: Suboptimal query for `some` and composite types with `type`
- Enhancement Request: Allow Database Provider Configuration via Environment Variable
- P1001 when attempting to connect to database
- Postgres error `42601` occurs when using `_relevance` parameter HOT 2
- Expected parent IDs to be set when ordering by parent HOT 1
- Support for Distinct Query on Nested Field HOT 2
- Requesting Default Select "false" for different Field HOT 2
- Less restrictive JSON types on create/insert
- Enhance Type Safety of the AtLeast Utility Type for More Accurate Type Inference
- Typescript throw error when abstracting nested select HOT 1
- Migrations started using significantly more memory in 5.13.0 and crash with OOM HOT 5
- MySql generated column support HOT 1
- Broken `ModelCreateArgs` being generated for relations in `data`
- Cannot migrate changes on Multi Schema setup for SQL Server HOT 1
- Add ability to order result set by COALESCE/MAX/MIN combination of columns.
- `$on` is missing on the extended client HOT 3
- Prisma incorrectly parses CRDB's FK constraint error as `not available` HOT 1
- Notify the user when their settings will be ignored HOT 3
- @prisma/client: TypeError: zn is not a function
- Support UUID v7 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma.