When serving datatables over https I'm getting net::ERR_CONTENT_LENGTH_MISMATCH

When serving datatables over https I'm getting net::ERR_CONTENT_LENGTH_MISMATCH

daanbonkedaanbonke Posts: 7Questions: 5Answers: 0

When I'm trying to load datatables over https I sometimes get et::ERR_CONTENT_LENGTH_MISMATCH in chrome.
Which results in not loading datatables/datatables editor.

This is what the log spits out:

GET https://mydomain.com/include/js/external/jquery.dataTables.min.js net::ERR_CONTENT_LENGTH_MISMATCH
GET https://mydomain.coml/include/editor/js/dataTables.editor.min.js net::ERR_CONTENT_LENGTH_MISMATCH

dataTables.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'defaults' of undefined(anonymous function) @ dataTables.bootstrap.min.js:5(anonymous function) @ dataTables.bootstrap.min.js:5(anonymous function) @ dataTables.bootstrap.min.js:5
dataTables.buttons.min.js:5 Uncaught TypeError: Cannot read property 'ext' of undefined(anonymous function) @ dataTables.buttons.min.js:5(anonymous function) @ dataTables.buttons.min.js:5(anonymous function) @ dataTables.buttons.min.js:5
buttons.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'Buttons' of undefined(anonymous function) @ buttons.bootstrap.min.js:5a @ buttons.bootstrap.min.js:5(anonymous function) @ buttons.bootstrap.min.js:5
editor.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'Editor' of undefined(anonymous function) @ editor.bootstrap.min.js:5(anonymous function) @ editor.bootstrap.min.js:5(anonymous function) @ editor.bootstrap.min.js:5
dataTables.responsive.min.js:22 Uncaught TypeError: Cannot read property 'Api' of undefined(anonymous function) @ dataTables.responsive.min.js:22(anonymous function) @ dataTables.responsive.min.js:5(anonymous function) @ dataTables.responsive.min.js:5
responsive.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'Responsive' of undefined(anonymous function) @ responsive.bootstrap.min.js:5(anonymous function) @ responsive.bootstrap.min.js:5(anonymous function) @ responsive.bootstrap.min.js:5
dataTables.select.min.js:11 Uncaught TypeError: Cannot set property 'select' of undefined(anonymous function) @ dataTables.select.min.js:11(anonymous function) @ dataTables.select.min.js:5(anonymous function) @ dataTables.select.min.js:5
alt-string.js:18 Uncaught TypeError: Cannot read property 'oSort' of undefined(anonymous function) @ alt-string.js:18
myjsfile.js:1 Uncaught TypeError: Cannot read property 'oSort' of undefined(anonymous function) @ myjsfile.js:1
myotherjsfile.js:1 Uncaught TypeError: Cannot read property 'oSort' of undefined(anonymous function) @ myotherjsfile.js:1
andanotherjsfile.js:89 Uncaught TypeError: Cannot read property 'oSort' of undefined

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I'm afraid I don't think I'll be able to offer much help here - it sounds like a server or proxy issue. Possibly the return from the server is getting cut off part way through? Some Googling suggests that there might be issues with old versions of node, or Nginx permissions - it could be anything with whatever server it is that you are using, but it doesn't sound like a problem with the DataTables software itself.

    Allan

This discussion has been closed.