rstudio / DT

R Interface to the jQuery Plug-in DataTables
https://rstudio.github.io/DT/
Other
587 stars 184 forks source link

DataTables warning: table id=DataTables_Table_0 - Ajax error #1086

Open sharitian opened 10 months ago

sharitian commented 10 months ago

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 understand that my issue may be closed if I don't fulfill my promises.

pantelisindefra commented 9 months ago

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).

wvictor14 commented 3 months ago

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.