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
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
i'm getting 500 errors submitting posts to strapi because this extension seems to be choking on the unique id field
[2021-08-02T03:03:18.800Z] debug GET /content-manager/collection-types/application::posts.posts?page=1&pageSize=20&_sort=date:DESC (97 ms) 200
[2021-08-02T03:03:24.820Z] debug POST /content-manager/uid/generate (88 ms) 200
[2021-08-02T03:03:26.405Z] debug POST /content-manager/uid/generate (48 ms) 200
[2021-08-02T03:03:26.950Z] debug POST /content-manager/uid/check-availability (35 ms) 200
TypeError: Cannot read property 'kind' of undefined
at /workspace/node_modules/strapi-middleware-cache/lib/index.js:195:51
at /workspace/node_modules/lodash/lodash.js:4967:15
at baseForOwn (/workspace/node_modules/lodash/lodash.js:3032:24)
at /workspace/node_modules/lodash/lodash.js:4936:18
at Function.forEach (/workspace/node_modules/lodash/lodash.js:9410:14)
at clearCache (/workspace/node_modules/strapi-middleware-cache/lib/index.js:194:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async /workspace/node_modules/strapi-middleware-cache/lib/index.js:248:9
at async bustAdmin (/workspace/node_modules/strapi-middleware-cache/lib/index.js:318:11)
at async /workspace/node_modules/strapi/lib/middlewares/responses/index.js:9:9
at async cors (/workspace/node_modules/@koa/cors/index.js:95:16)
at async /workspace/node_modules/strapi/lib/middlewares/logger/index.js:56:11
at async /workspace/node_modules/strapi/lib/middlewares/responseTime/index.js:17:9
at async /workspace/node_modules/strapi/lib/services/metrics/middleware.js:29:5
at async /workspace/node_modules/strapi/lib/Strapi.js:325:9
The text was updated successfully, but these errors were encountered:
I've had a look at the code, it does seem to be an issue in version 1 of the middleware. That said the code has been completely reworked in the v2 (beta branch). Upgrading to it might solve this issue for you
i'm getting 500 errors submitting posts to strapi because this extension seems to be choking on the unique id field
The text was updated successfully, but these errors were encountered: