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
See POST https://apiv4-staging.devlaunchers.org/api/comments got a 500 response
Expected behavior
Idea is submitted
Environment
Staging website which uses the staging API
Additional context
Staging server log suggests the problem is in the lifecycle hook:
{
id: 180,
text: 'Can you provide more details?',
author: 'cthuang',
createdAt: '2024-02-15T20:22:14.175Z',
updatedAt: '2024-02-15T20:22:14.175Z',
publishedAt: '2024-02-15T20:22:14.136Z'
}
[2024-02-15 20:22:14.420] �[31merror�[39m: Cannot read properties of undefined (reading 'ideaName')
TypeError: Cannot read properties of undefined (reading 'ideaName')
at Object.afterCreate (/srv/app/src/api/comment/content-types/comment/lifecycles.js:10:56)
at modelsLifecyclesSubscriber (/srv/app/node_modules/@strapi/database/dist/index.js:5856:43)
at Object.run (/srv/app/node_modules/@strapi/database/dist/index.js:5941:17)
at Object.create (/srv/app/node_modules/@strapi/database/dist/index.js:5038:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.create (/srv/app/node_modules/@strapi/strapi/dist/services/entity-service/index.js:131:18)
at async Object.<anonymous> (/srv/app/node_modules/@strapi/strapi/dist/services/entity-service/index.js:309:18)
at async Object.create (/srv/app/node_modules/@strapi/strapi/dist/core-api/controller/collection-type.js:46:22)
at async returnBodyMiddleware (/srv/app/node_modules/@strapi/strapi/dist/services/server/compose-endpoint.js:42:18)
at async policiesMiddleware (/srv/app/node_modules/@strapi/strapi/dist/services/server/policy.js:15:5)
The text was updated successfully, but these errors were encountered:
Describe the bug
Cannot submit comments for ideas in staging
To Reproduce
Steps to reproduce the behavior:
https://apiv4-staging.devlaunchers.org/api/comments
got a 500 responseExpected behavior
Idea is submitted
Environment
Staging website which uses the staging API
Additional context
Staging server log suggests the problem is in the lifecycle hook:
The text was updated successfully, but these errors were encountered: