Calling dmmf
raises "Schema parsing - Error while interacting with query-engine-node-api library" misleading error message when there is a schema validation error.
#14588
Labels
kind/improvement
An improvement to existing feature and code.
team/schema
Issue for team Schema.
topic: dmmf
topic: dx
Milestone
For instance, trying to use an invalid referential action prints the following error:
t means that calling
NodeAPIQueryEngineLibrary.dmmf(datamodel)
had thrown an error which was successfully JSON-parsed. This is coherent with what was happening before the getConfig/getDmmf refactoring (https://github.com/prisma/prisma/blob/3.11.0/packages/sdk/src/engine-commands/getDmmf.ts#L58-L64).In practice, such an error doesn't necessarily imply a schema parsing issue, so we should be able to disambiguate actual "Schema Parsing" errors vs these "Invalid Request" errors.
See internal discussion here.
The text was updated successfully, but these errors were encountered: