Open meteofix opened 1 year ago
Trying to send a POST request with postman, getting a response:
{ "data": null, "error": { "status": 500, "name": "InternalServerError", "message": "Internal Server Error" } }
In logs:
0|paltform-cms | [CONTROLLERS] Strapi-Voting: vote api::faq.faq:1 0|paltform-cms | [2022-12-01 19:49:31.632] error: Cannot read properties of undefined (reading 'geoip') 0|paltform-cms | TypeError: Cannot read properties of undefined (reading 'geoip') 0|paltform-cms | at Object.vote (/home/ec2-user/platform-strapi-cms/node_modules/strapi-plugin-voting/server/services/voting.js:128:39) 0|paltform-cms | at Object.vote (/home/ec2-user/platform-strapi-cms/node_modules/strapi-plugin-voting/server/controllers/voting.js:35:46) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at returnBodyMiddleware (/home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/compose-endpoint.js:52:24) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at policiesMiddleware (/home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/policy.js:24:11) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at /home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/compose-endpoint.js:33:12 0|paltform-cms | at runMicrotasks () 0|paltform-cms | at processTicksAndRejections (node:internal/process/task_queues:96:5)
Same error when trying to vote in strapi, under Voting section in left panel.
I'm still getting this error, how can I resolve this?
Trying to send a POST request with postman, getting a response:
In logs:
0|paltform-cms | [CONTROLLERS] Strapi-Voting: vote api::faq.faq:1 0|paltform-cms | [2022-12-01 19:49:31.632] error: Cannot read properties of undefined (reading 'geoip') 0|paltform-cms | TypeError: Cannot read properties of undefined (reading 'geoip') 0|paltform-cms | at Object.vote (/home/ec2-user/platform-strapi-cms/node_modules/strapi-plugin-voting/server/services/voting.js:128:39) 0|paltform-cms | at Object.vote (/home/ec2-user/platform-strapi-cms/node_modules/strapi-plugin-voting/server/controllers/voting.js:35:46) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at returnBodyMiddleware (/home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/compose-endpoint.js:52:24) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at policiesMiddleware (/home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/policy.js:24:11) 0|paltform-cms | at dispatch (/home/ec2-user/platform-strapi-cms/node_modules/koa-compose/index.js:42:32) 0|paltform-cms | at /home/ec2-user/platform-strapi-cms/node_modules/@strapi/strapi/lib/services/server/compose-endpoint.js:33:12 0|paltform-cms | at runMicrotasks ()
0|paltform-cms | at processTicksAndRejections (node:internal/process/task_queues:96:5)
Same error when trying to vote in strapi, under Voting section in left panel.