Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RConnect Shiny Dashboard rendering DataTables Warning says: Table ID = DataTables_Table_0 - Ajax error #1088

Open
3 tasks done
babu-g opened this issue Sep 19, 2023 · 7 comments

Comments

@babu-g
Copy link

babu-g commented Sep 19, 2023

RConnect shiny dashboard shows ajax error when accessing the shiny app

We are having an issue with multiple R Shiny Dashboard applications where the following error appears to the users whenever accessing the Shiny page.

ajax error

DataTables Warning says: Table ID = DataTables_Table_0 - Ajax error. For more information about this error, see http://datatables.net/tn/7
DataTables Warning; table id + DataTables_Table_18-Ajax Error.

We tried using Google Chrome's Developer pane to check for the error, but the server responded with some 500 - internal error.

So, we checked out some blog posts about the problem. One of them said to switch the Data.table to DT library, but when we loaded the page, the pop-up still showed up.

The application is running in on RHEL 7.9 with RStudio Connect Version 2022.08

Article reffered - https://community.rstudio.com/t/data-table-issue-while-rendering-the-shiny-page-datatables-warning-table-id-datatables-table-0-requested-unknown-parameter/44016

The below Shiny app code below:

Shiny Code.txt

Another question, are there any other alternative package that can be used instead of Data.table/DT?

We would be grateful for any clarification on how to rectify this issue. Thank you in advance.


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@babu-g babu-g closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2023
@babu-g babu-g reopened this Sep 19, 2023
@stla
Copy link
Collaborator

stla commented Sep 19, 2023

No idea, your code is not understandable without more contextx Regarding the aternatives, there is reactable and gt.

@JessiBoggia
Copy link

Hi All,

I am with Posit support and have been working with @babu-g to try and fix this issue. A number of staff have looked at this and we are not sure where the issue was coming from but we noted it was similar to an old issue here: #266

We are wondering if there are circumstances that could re-trigger this issue in more recent versions. Please feel free to reach out to me via the Posit slack if you have any questions about this case from us.

Thank you!

--Jessi - Support Engineer - Posit PBC

@yihui
Copy link
Member

yihui commented Oct 4, 2023

@babu-g The "Ajax error" could have many reasons, and it's hard to know without a reproducible example. The Shiny Code.txt you provided is not a reproducible example---we don't have ed_df_11.csv. You have output$summ_table <- DT::renderDataTable(...) in your server function, but summ_table is not present in the ui function, so the table won't be rendered at all.

Please also try to minimize the example. For example, remove packages that are not actually used in the example. Ideally, the example should use DT only, so we can be sure the problem is not caused by other packages, e.g., ggplot2 and plotly should be irrelevant. Keep deleting code until the problems goes away, and then you will be much closer to the root of the problem. For now, it's too hard to tell.

We tried using Google Chrome's Developer pane to check for the error, but the server responded with some 500 - internal error.

500 typically indicates an R error occurred. For security reasons, the error won't be shown in the JS console. You have to check the server log in Connect to see what happened.

@JessiBoggia
Copy link

Hi @yihui ,

Thanks so much for looking into this and clarifying. I am hoping that @babu-g will clean up the sample and retest soon. In the meantime regarding:

500 typically indicates an R error occurred. For security reasons, the error won't be shown in the JS console. You have to check the server log in Connect to see what happened.

I did a sweep of the logs and the Connect dev team checked behind me and they didn't see anything pertinent to the issue either. Do you know what kind of output we should be looking for? I am happy to check again and see if that sheds any light on this issue.

Appreciatively,

Jessi

@yihui
Copy link
Member

yihui commented Oct 5, 2023

Okay, if there isn't anything pertinent to the issue in the Connect logs, I'll definitely need a minimal reproducible example before I can investigate the problem.

@bkowshik
Copy link

bkowshik commented Aug 2, 2024

Getting this error when I visit this page now:
https://rstudio.github.io/DT/server.html

image

@yihui
Copy link
Member

yihui commented Aug 3, 2024

@bkowshik #1145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants