Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: preShinyInit is not defined #444

Closed
galen211 opened this issue May 26, 2020 · 2 comments
Closed

Uncaught ReferenceError: preShinyInit is not defined #444

galen211 opened this issue May 26, 2020 · 2 comments

Comments

@galen211
Copy link

I'm cross-posting this issue from the RStudio community site here because I'm not sure if it's a bug or not. I'm running a shiny-server docker container on kubernetes behind a load balancer. When I deploy my pod with shiny-server, I can see traffic routing into the pod and am getting partial page loads with a significant number of 400 errors on js and css assets.

In the console, I can see the aborted GET requests for the different assets along with a series of errors from shiny-server-client.min.js including Uncaught ReferenceError: preShinyInit is not defined

Screen Shot 2020-05-26 at 2 41 19 PM

Looking for help to understand this exception.

@jcheng5
Copy link
Member

jcheng5 commented May 26, 2020

The TypeErrors and ReferenceErrors are just symptoms of the failed GET requests. The GET requests are likely failing because of rstudio/httpuv#247. If you can get the load balancer to stop sending Content-Length: 0 on proxied GET requests, great; otherwise, you'll have to either install httpuv from GitHub master (i.e. remotes::install_github("rstudio/httpuv")) or wait for the new httpuv release to hit CRAN. We are in the submission process already, so hopefully any day now?

@jcheng5 jcheng5 closed this as completed May 26, 2020
@galen211
Copy link
Author

Thanks this solved the error. Appreciate the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants