Skip to content
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

date parsing error preventing saving #70

Open
kapil1garg opened this issue May 16, 2024 · 0 comments
Open

date parsing error preventing saving #70

kapil1garg opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kapil1garg
Copy link
Contributor

[interactive-soap-notes] [2024-05-16 06:38:40] Error in /api/issue for updating issue objects CastError: Cast to date failed for value "Thu, May 16, 2024 at 1:38 AM" (type string) at path "lastUpdated"
[interactive-soap-notes] [2024-05-16 06:38:40]     at SchemaDate.cast (/workspace/node_modules/mongoose/lib/schema/date.js:376:11)
[interactive-soap-notes] [2024-05-16 06:38:40]     at SchemaType.applySetters (/workspace/node_modules/mongoose/lib/schemaType.js:1236:12)
[interactive-soap-notes] [2024-05-16 06:38:40]     at SchemaDate.castForQuery (/workspace/node_modules/mongoose/lib/schema/date.js:411:19)
[interactive-soap-notes] [2024-05-16 06:38:40]     at castUpdateVal (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:573:19)
[interactive-soap-notes] [2024-05-16 06:38:40]     at walkUpdatePath (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:378:24)
[interactive-soap-notes] [2024-05-16 06:38:40]     at castUpdate (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:111:7)
[interactive-soap-notes] [2024-05-16 06:38:40]     at model.Query._castUpdate (/workspace/node_modules/mongoose/lib/query.js:4587:10)
[interactive-soap-notes] [2024-05-16 06:38:40]     at model.Query._findOneAndUpdate (/workspace/node_modules/mongoose/lib/query.js:3298:23)
[interactive-soap-notes] [2024-05-16 06:38:40]     at model.Query.exec (/workspace/node_modules/mongoose/lib/query.js:4330:80)
[interactive-soap-notes] [2024-05-16 06:38:40]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[interactive-soap-notes] [2024-05-16 06:38:40]   stringValue: '"Thu, May 16, 2024 at 1:38 AM"',
[interactive-soap-notes] [2024-05-16 06:38:40]   messageFormat: undefined,
[interactive-soap-notes] [2024-05-16 06:38:40]   kind: 'date',
[interactive-soap-notes] [2024-05-16 06:38:40]   value: 'Thu, May 16, 2024 at 1:38 AM',
[interactive-soap-notes] [2024-05-16 06:38:40]   path: 'lastUpdated',
[interactive-soap-notes] [2024-05-16 06:38:40]   reason: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
[interactive-soap-notes] [2024-05-16 06:38:40]   
[interactive-soap-notes] [2024-05-16 06:38:40]     assert.ok(false)
[interactive-soap-notes] [2024-05-16 06:38:40]   
[interactive-soap-notes] [2024-05-16 06:38:40]       at castDate (/workspace/node_modules/mongoose/lib/cast/date.js:40:10)
[interactive-soap-notes] [2024-05-16 06:38:40]       at SchemaDate.cast (/workspace/node_modules/mongoose/lib/schema/date.js:374:12)
[interactive-soap-notes] [2024-05-16 06:38:40]       at SchemaType.applySetters (/workspace/node_modules/mongoose/lib/schemaType.js:1236:12)
[interactive-soap-notes] [2024-05-16 06:38:40]       at SchemaDate.castForQuery (/workspace/node_modules/mongoose/lib/schema/date.js:411:19)
[interactive-soap-notes] [2024-05-16 06:38:40]       at castUpdateVal (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:573:19)
[interactive-soap-notes] [2024-05-16 06:38:40]       at walkUpdatePath (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:378:24)
[interactive-soap-notes] [2024-05-16 06:38:40]       at castUpdate (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:111:7)
[interactive-soap-notes] [2024-05-16 06:38:40]       at model.Query._castUpdate (/workspace/node_modules/mongoose/lib/query.js:4587:10)
[interactive-soap-notes] [2024-05-16 06:38:40]       at model.Query._findOneAndUpdate (/workspace/node_modules/mongoose/lib/query.js:3298:23)
[interactive-soap-notes] [2024-05-16 06:38:40]       at model.Query.exec (/workspace/node_modules/mongoose/lib/query.js:4330:80) {
[interactive-soap-notes] [2024-05-16 06:38:40]     generatedMessage: true,
[interactive-soap-notes] [2024-05-16 06:38:40]     code: 'ERR_ASSERTION',
[interactive-soap-notes] [2024-05-16 06:38:40]     actual: false,
[interactive-soap-notes] [2024-05-16 06:38:40]     expected: true,
[interactive-soap-notes] [2024-05-16 06:38:40]     operator: '=='
[interactive-soap-notes] [2024-05-16 06:38:40]   },
[interactive-soap-notes] [2024-05-16 06:38:40]   valueType: 'string'
[interactive-soap-notes] [2024-05-16 06:38:40] }
@kapil1garg kapil1garg added the bug Something isn't working label May 16, 2024
kapil1garg added a commit that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant