rstudio / shiny

Easy interactive web applications with R
https://shiny.posit.co/
Other
5.36k stars 1.87k forks source link

Faild to load resource: the server responded with a status of 404 #3454

Closed apalacio10 closed 3 years ago

apalacio10 commented 3 years ago

Hello,

In the developer version when a selectizeInput is added the following error appears in the js console.

imagen

apalacio10 commented 3 years ago

Using the safari browser, the screen freezes. I think this is related to the error.

wch commented 3 years ago

Can you provide a reproducible example? Otherwise we don't have a way of debugging the problem. Please see: https://community.rstudio.com/t/shiny-debugging-and-reprex-guide/10001

apalacio10 commented 3 years ago

Hello,

I was building a reproducible error, the error is given by the combination of a selectInput and a renderPlotly. This is the code I built.

`library(shiny)

shinyApp( ui = fluidPage( selectInput("n", "N", 1:10), plotlyOutput("plot") ), server = function(input, output, session) { output$plot <- renderPlotly({ n <- as.numeric(input$n) * 2 plot_ly(head(cars, n)) %>% add_markers(x=~speed,y=~dist) }) } ) `

This is the error that appears in the java console

imagen

Plotly version is latest from developer

cpsievert commented 3 years ago

I don't think this code example reproduces the 404 error. Also, I'd be surprised if the 404 is actually causing the safari issue you mentioned (a missing .map file is only relevant for the developer tools).

Feel free to open a new issue when you have a reproducible example of the issue

wch commented 3 years ago

Just to add a bit more detail: the crosstalk.min.js.map file would only be loaded after you open the JavaScript console -- it's used only when debugging the application, but not when the application is loaded normally.