Strange bug when you use Plotly on your own serverrstats ·
I used my Shiny apps only locally and only with shinyapps.io in the past, but now I’ve got a VPS. When I migrated my previous apps to the VPS I found a strange bug. When there was ggplot based Plotly plot in my code I got an error message: “An error has occurred. Check your logs or contact the app author for clarification.”.
I checked the log file which said:
Fortunately I found this blog post which says I just only need to paste pdf(NULL) to my code which solves the problem.
So if you have a same issue you just only need to paste it to the start of the renderPlotly function like this:
Write me if you know a more elegant way to fix this bug.