DataTables warning: table id=DataTables_Table_0 - Ajax error
sharitian opened this issue · 2 comments
Hello,
I am running an R Shiny application on a docker container. My app directory consists of an app.R file and a Data/ folder. I have a feature where I use DT::renderDataTable() to render a .csv file stored in the Data/ folder. This feature works locally but produces this pop-up error when executed on the docker container:
DataTables warning: table id=DataTables_Table_0 - Ajax error. For more information about this error, please see http://datatables.net/tn/7
Following the link, I investigated the error using the Developer Tools pane in Google Chrome. As a result, I found that the server responded with a "404 - Not Found" error when trying to render the table. I made sure that the .csv file is present in the Data/ folder, so I'm not sure why I'm still getting this error. Any explanation on how to fix this issue would be greatly appreciated.
Thanks!
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.
This is likely a DT::renderDataTable
issue. Try using less columns. Also try with server = FALSE
on the DT::renderDataTable
(if it is a small table).
I am also experiencing this issue. Same situation: digital ocean hosting an shiny app run from a docker container. I receive same popup error message and datatable does not render. Yes my DT::renderDataTable
command is using server rendering, which is necessary since the data is large.