DataTable refresh not being actioned

DataTable refresh not being actioned

DavidHaigDavidHaig Posts: 7Questions: 1Answers: 0

Error messages shown:
Normal Screen (Firefox) -

Wallboard Screen -

Description of problem:
Hi, since Tuesday morning (04JUN24) the DataTable element of our wallboards are not refreshing. These run from an IIS server as a .Net8.0 application and the application works fine in Chrome, Edge and Firefox on the desktop, and until the morning on LG Signage screens using webOS 3.3.0-23 (dreadlocks-deua). Nothing has updated on the screens and the IIS server and application are unchanged, Does anyone have any ideas?

The libraries I am using are -
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous">

<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.21/css/jquery.dataTables.min.css"
integrity="sha512-1k7mWiTNoyx2XtmI96o+hdjP8nn0f3Z2N4oF/9ZZRgijyV4omsKOXEnqL1gKQNPy2MTSP9rIEWGcH/CInulptA=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />

Any help on how to try and debug this gratefully accepted!

Cheers,
David

Replies

  • allanallan Posts: 63,439Questions: 1Answers: 10,459 Site admin

    Hi David,

    Something somewhere must have changed :). The screenshot suggests to me a Javascript error - there is no DataTables styling, not even the "Loading" row.

    Are you able to view a console from webOS or do remote debugging on it?

    Allan

  • DavidHaigDavidHaig Posts: 7Questions: 1Answers: 0

    Hi Allan,

    I would agree, something has changed but I don't know what! :(

    It does seems to be just not loading in the Ajax call for some reason, but is OK in normal browsers (and has worked fine for 6 months or more). I am on to LG to see what they say and to try and get a way to view the console or somehow remotely debug it if I can.

    Cheers,
    David

  • allanallan Posts: 63,439Questions: 1Answers: 10,459 Site admin

    You could try something like:

    window.onerror = function(event, source, lineno, colno, error) {
       alert('ERROR: '+ msg);
    }
    

    Stick that into a script at the top of the page and it will hopefully lead to some sort of clue as to what is going on. I recall using that trick a while back on digital signage stuff (I don't like thinking about how long ago that was now!).

    Allan

  • DavidHaigDavidHaig Posts: 7Questions: 1Answers: 0

    Thanks Allan,

    Will give that a go.

    Cheers,
    David

  • DavidHaigDavidHaig Posts: 7Questions: 1Answers: 0

    Hi Allan,

    I have got a version running on the Screens with the error trap (and it is still working without a problem in the browsers) and have got the message -
    Event: Uncaught SyntaxError: Use of const in strict mode
    Source: http://10.0.120.21/lib/bootstrap/dist/js/bootstrap.bundle.min.js
    Error: SyntaxError: Use of const in strict mode
    Line : 6 (which is the whole js script)

    Any ideas? i'm still waiting to hear back from LG as it is only affecting their screens.

    Cheers,
    David

  • kthorngrenkthorngren Posts: 21,292Questions: 26Answers: 4,944
    edited June 7

    SyntaxError: Use of const in strict mode
    Source: http://10.0.120.21/lib/bootstrap/dist/js/bootstrap.bundle.min.js

    This doesn't look like a Datatables specific error. Google search results indicate a common issue is with using an older version of node.js. For example:
    https://stackoverflow.com/questions/36789889/syntaxerror-use-of-const-in-strict-mode
    https://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode

    Yes, two different threads with the same name :smile:

    It could possibly be something else but seems something in the environment might need upgraded.

    Line : 6 (which is the whole js script)

    You are loading the minimized version of bootstrap.bundle.min.js. To see the line of code you will need to load the non-minimized version, ie bootstrap.bundle.js.

    Kevin

  • allanallan Posts: 63,439Questions: 1Answers: 10,459 Site admin

    Yeah - sounds like an old version of a JS engine. Any idea what browser engine and version webOS is using? You could alert(navigator.userAgent) to see that.

    Was Bootstrap upgraded perhaps?

    Allan

  • DavidHaigDavidHaig Posts: 7Questions: 1Answers: 0

    Hi Allan,

    I don't think the WebOS/Browser on the TVs has been updated since 2019 - I have LG looking at that for me.

    I'll try the alert(navigator.userAgent) and see what I get there - I don't think Bootstrap was upgraded but I have found a couple of other little issues with versions of components that I'll fix.

    Thanks for all your suggestions

    Cheers
    David

  • allanallan Posts: 63,439Questions: 1Answers: 10,459 Site admin

    Let us know how you get on - I'm curious :)

    Allan

Sign In or Register to comment.