Invalid response data: the query result was required, but an empty Object((Weak)) was returned instead (allsquare)
See original GitHub issueError: PANIC: internal error: entered unreachable code
on running a create operation from the client:
2020-03-05T16:56:56.120Z prisma-client Requests:
2020-03-05T16:56:56.121Z prisma-client [
'mutation {\n' +
' createOneahoy_events(data: {\n' +
' created_at: "2024-06-26T14:40:10.450Z"\n' +
' id: "ba000471-eabd-55d2-8b42-8ac91ec57e13"\n' +
' name: "sab"\n' +
' properties: "ziwiwwuh"\n' +
' time: "2077-02-06T12:02:57.325Z"\n' +
' type: "zeenejom"\n' +
' updated_at: "2034-04-09T19:09:04.015Z"\n' +
' user_id: 2091163462\n' +
' visit_id: "mahbu"\n' +
' }) {\n' +
' created_at\n' +
' id\n' +
' name\n' +
' properties\n' +
' time\n' +
' type\n' +
' updated_at\n' +
' user_id\n' +
' visit_id\n' +
' }\n' +
'}'
]
2020-03-05T16:56:56.680Z engine stdout {
timestamp: 'Mar 05 16:56:56.679',
level: 'ERROR',
target: 'prisma',
fields: {
message: 'PANIC',
reason: 'internal error: entered unreachable code',
file: 'query-engine/core/src/response_ir/mod.rs',
line: 281,
column: 38
}
}
2020-03-05T16:56:56.682Z engine {
error: Error: socket hang up
at connResetException (internal/errors.js:604:14)
at Socket.socketOnEnd (_http_client.js:460:23)
at Socket.emit (events.js:323:22)
at Socket.EventEmitter.emit (domain.js:482:12)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'ECONNRESET'
}
}
2020-03-05T16:56:56.684Z prisma-client Error: PANIC: internal error: entered unreachable code
at /home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/runtime/index.js:1:17381
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Dataloader.loader (/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/index.js:56:23)
2020-03-05T16:56:56.684Z printStack callsite Error
at new ahoy_eventsClient (/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/index.js:2856:21)
at Object.ahoy_events.create (/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/index.js:2738:7)
at /home/runner/work/introspection-engine-output/prisma-test-utils/src/static/seed.ts:973:45
at Generator.next (<anonymous>)
at /home/runner/work/introspection-engine-output/prisma-test-utils/dist/static/seed.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/introspection-engine-output/prisma-test-utils/dist/static/seed.js:4:12)
at iterate (/home/runner/work/introspection-engine-output/prisma-test-utils/dist/static/seed.js:635:24)
at /home/runner/work/introspection-engine-output/prisma-test-utils/src/static/seed.ts:998:30
at Generator.next (<anonymous>)
PrismaClientUnknownRequestError:
Invalid `prisma.ahoy_events.create()` invocation in
/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/index.js:2738:7
PANIC: internal error: entered unreachable code
at PrismaClientFetcher.request (/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/allsquare/index.js:90:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
This is the code being executed there:
async function main() {
const data = await prisma.ahoy_events.create({
data: {
created_at: '2024-06-26T14:40:10.450Z',
// id: 'ba000471-eabd-55d2-8b42-8ac91ec57e13', // ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Server(ServerError { code: 1406, message: "Data too long for column \'id\' at row 1", state: "22001" })) })
id: 'ba000471',
name: 'sab',
properties: 'ziwiwwuh',
time: '2077-02-06T12:02:57.325Z',
type: 'zeenejom',
updated_at: '2034-04-09T19:09:04.015Z',
user_id: 2091163462,
visit_id: 'mahbu',
},
})
console.log({ data })
}
All information like schema, datamodel, code etc see this reproduction repo: https://github.com/divyendu-test/p2-1772
Most likely coming from here: https://github.com/prisma/prisma-engines/blob/master/query-engine/core/src/response_ir/mod.rs#L281
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Invalid response data: the query result was required, but an ...
Invalid response data: the query result was required, but an empty Object((Weak)) was returned instead #1822.
Read more >react query returning empty object for data - Stack Overflow
As per rules , You need to add all the variables used inside useEffect as dependency so that it reacts once the value...
Read more >Utilities - SageMath Documentation
Return an indefinite or definite integral of an object x. ... return all square roots of self, instead of just one. EXAMPLES: sage:...
Read more >LTO removes C functions declared as weak in assembler ...
I've observed strange behaviour of the link-time optimization on GCC 7.2.1, exact version: gcc version 7.2.1 20170904 (release) ...
Read more >Hal Daumé III - A Course in Machine Learning
Thus, this book has two goals. First, to be a gentle introduction to what is a very deep field. Second, to provide readers...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Running the reproduction locally we do not even get the
Object((Weak))
error message, so it is unclear if this problem really exists the way we think. We will reproduce this again as soon as Introspection CI and test-utils has been cleaned up by @divyenduzI have a minimal reproduction for the crash, working on it.