Open jpabbuehl opened 6 years ago
I have tried to run the hello world example - runExample("01_hello") I can still see this error in console, with bootstrap css Perharps a missing requirement to detect the correct type ?
Is there any symptom besides those messages? Those messages appear to be the source maps failing to load, which is not expected, but also shouldn't affect the assets themselves from working. Are there other messages? Does the app fail to behave as expected?
And what do the above shiny.min.js and bootstrap.min.css URLs look like if you append .map
to the end of the path (e.g. shiny.min.js.map
)? Do you see JSON data?
Hi all,
I am working on Rstudio server and developing shiny application in my session. Unfortunately I am unable to render perfectly on the server, but on my local environment, it's fine.
Looking at the browser console, I can see ~10 of those error messages. Source map error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data Resource URL: http://xxx.com:9000/s/b3fa5359e5dd1f97375df/p/9000/shared/shiny.min.js Source map error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data Resource URL: http://xxx.com:9000/s/b3fa5359e5dd1f97375df/p/9000/shared/bootstrap/css/bootstrap.min.css etc...
I can access those files by typing the url in my browser, so I don't think it's an access issue. Basically it looks like JSON.parse detects any JS or CSS code in the shared folder as JSON and thus fails. Unfortunately, I am not able to provide a reproducible example, because this is an internal restricted server. But here's my sessionInfo()