New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid response data: the query result was required, but an empty Object((Weak)) was returned instead (drupal) #1779
Comments
Can you also paste the client call? It is hard to infer that from the error 🙏 |
Per @divyenduz it is not, the mutation pretty much matches 1 to 1. But no, I can not without rewriting it myself as it was not logged when we created this. The current |
Ok, I was just asking because that would have saved me from manual work. I tried to reproduce this with
Client call: import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient({
log: ["info", "query"]
});
async function main() {
const data = await prisma.lAfOL_block_content_field_data.create({
data: {
changed: -1623333434,
default_langcode: 472432043,
id: -20715012,
info: "fuhazek",
langcode: "ribu",
reusable: 1470101905,
revision_id: 1181686489,
revision_translation_affected: -215804373,
status: 1887633569,
type: "onokan"
}
});
console.log(data);
}
main(); I wasn't able to test with current alpha 880 as it is broken because of flag renaming: I am marking this as confirmed as it threw a different error |
I would have provided it if it existed - but this a dynamically generated script. The different error is interesting - lets see if @tom can reproduce the original error next week (or @divyenduz on the next run via test-utils automation, with the current alpha). |
Recreated issue clean here: #1823 |
Schema drupal.
Error:
Model:
SQL:
The text was updated successfully, but these errors were encountered: