You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in the provided code sample, RESTful requests work correctly (when validation fails or passes), GraphQL requests fail when validation fails, resulting in this error:
{"errors": [{"message": "Bad Request","locations": [{"line": 2,"column": 3}],"path": ["helloWorldI18n"],"extensions": {"code": "INTERNAL_SERVER_ERROR","stacktrace": ["I18nValidationException: Bad Request"," at I18nValidationPipe.i18nValidationErrorFactory (/home/gomaa-zorin/Github/GE-Techs/i18n-graphql/node_modules/nestjs-i18n/src/utils/util.ts:34:10)"," at I18nValidationPipe.transform (/home/gomaa-zorin/Github/GE-Techs/i18n-graphql/node_modules/@nestjs/common/pipes/validation.pipe.js:74:30)"," at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"," at async resolveParamValue (/home/gomaa-zorin/Github/GE-Techs/i18n-graphql/node_modules/@nestjs/core/helpers/external-context-creator.js:136:31)"," at async Promise.all (index 0)"," at async pipesFn (/home/gomaa-zorin/Github/GE-Techs/i18n-graphql/node_modules/@nestjs/core/helpers/external-context-creator.js:138:13)"," at async /home/gomaa-zorin/Github/GE-Techs/i18n-graphql/node_modules/@nestjs/core/helpers/external-context-creator.js:66:17"]}}],"data": null}
Describe the bug
Hello, thanks for the package! 🌹
As in the provided code sample, RESTful requests work correctly (when validation fails or passes), GraphQL requests fail when validation fails, resulting in this error:
Any help is appreciated!
Reproduction
https://github.com/G0maa/i18n-graphql
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: