{
"status": "500",
"message": "Cannot read properties of undefined (reading '0')",
"stack": "TypeError: Cannot read properties of undefined (reading '0')\n at App.range (/Users/marcelschmidt/Documents/myadvisor/lib/validator/core.js:230:62)\n at Object.validateRule (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:93:36)\n at Object.validateField (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:83:29)\n at Object.validateFields (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:58:28)\n at Object.init (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:11:24)\n at App.define (/Users/marcelschmidt/Documents/myadvisor/lib/core/app.js:376:29)\n at /Users/marcelschmidt/Documents/myadvisor/lib/core/middleware.js:13:40\n at Layer.handle [as handle_request] (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/layer.js:95:5)\n at next (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/route.js:137:13)\n at next (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/route.js:131:14)"
}
Might be that I forgot how to do this or because it is my first time using node.js as server langauge.
Do you have validation on your input? I can see in the error trace that it throws the error while validating a field, please let me know which validation rules are added and what was the data posted to the server.
Thanks for replying @patrick. Initially there weren’t validations on the front end, but when importing to the server action $Post it added min and max based on the code in the form. This is my form code:
I have the same issue. How can I find the file and remove this option.
dmxConnectLib/lib/validator/rules/core.php",
“message”: “Trying to get property ‘0’ of non-object”,