500 | Internal Server ErrorTypeError: Cannot read properties of null (reading 'length')