I am trying to import a CSV file and I am constantly getting a 500 error when it tries to import.
I have done this before and it works fine but now I am getting this error and for the life of me I can not see why!
I have checked the CSV file and all headers are correct and its one I have used elsewhere with success.
The file uploads to the correct folder.
I have designated the correct path.
What on earth would be causing this to occur???
{status: "500", message: "parseCSV: email is missing in undefined",…}
message: "parseCSV: email is missing in undefined"
stack: "Error: parseCSV: email is missing in undefined\n at /opt/node_app/lib/modules/import.js:22:23\n at Array.forEach (<anonymous>)\n at parseCSV (/opt/node_app/lib/modules/import.js:20:24)\n at App.csv (/opt/node_app/lib/modules/import.js:117:16)\n at async App._exec (/opt/node_app/lib/core/app.js:435:30)\n at async App._exec (/opt/node_app/lib/core/app.js:406:17)\n at async App.exec (/opt/node_app/lib/core/app.js:375:9)\n at async App.define (/opt/node_app/lib/core/app.js:365:9)"
status: "500"
The request: