Disconnected from the server but locally working without problems or errors

117 views
Skip to first unread message

Andrés Gil Calín

unread,
Jul 20, 2016, 1:09:21 PM7/20/16
to shinyapps.io Users
Hi guys,

I've just deployed my first app, which works perfectly locally. Some parts work ok, but the biggest one, which involves a leaflet map, a dygraph graph and 3 selection boxes, seems to be stucked and it is not working. When i try to interact with one of this elements, the app disconnects from the server. I've already tried to make some tuning and scaling changes, but nothing. And the log does not show any error.

Any help would be very appreciated.


Thank you!

Logan Hansen

unread,
Jul 21, 2016, 6:27:34 AM7/21/16
to shinyapps.io Users
How large is your data sample? If it's a large data file and it only loads when you access that portion of the app, you may be exceeding your memory limit when the app tries to load the data.

Andrés Gil Calín

unread,
Jul 21, 2016, 6:56:30 AM7/21/16
to shinyapps.io Users
I think is not about the data. I've just discovered how to check my javascript console, and the only error i can see is this one:

htmlwidgets.js:654 Uncaught Error: All fields must be arrayswindow.
HTMLWidgets.dataframeToD3 @ htmlwidgets.js:654
(anonymous function) @ leaflet.js:852
(anonymous function) @ leaflet.js:723
addLayers @ leaflet.js:734
methods.addPolygons @ leaflet.js:849
(anonymous function) @ leaflet.js:1638
_sendMessagesToHandlers @ shinyapp.js:409
(anonymous function) @ shinyapp.js:494
_sendMessagesToHandlers @ shinyapp.js:409
dispatchMessage @ shinyapp.js:393
c.onmessage @ shinyapp.js:91

Total data is about 10 Mb, but the app doesn't uses the whole data each interaction, just a little part.

Any idea about this error?

Andrés Gil Calín

unread,
Jul 21, 2016, 7:27:17 AM7/21/16
to shinyapps.io Users
Problem solved guys, thank you! It was one of my functions, but i didn't knew hoy to see errors on the javascript console.

Alaka Sarangdhar

unread,
Oct 4, 2016, 1:32:51 PM10/4/16
to shinyapps.io Users
I am also getting the same error. I have successfully deployed my app to shinyapps.
Application successfully deployed to https://alaka10.shinyapps.io/swiftkey/

In the logs on shipnyapp.io I see that the package tm can not be installed.
but I can install it locally. I do not know how to fix this error.
Thanks
Alaka 
2016-10-04T16:34:56.502980+00:00 shinyapps[127082]: Error in install.packages("tm") : unable to install packages
2016-10-04T16:34:56.502817+00:00 shinyapps[127082]:     50: install.packages
2016-10-04T16:34:56.502819+00:00 shinyapps[127082]:      8: tryCatch
2016-10-04T16:34:56.502818+00:00 shinyapps[127082]:     13: runApp
2016-10-04T16:34:56.502821+00:00 shinyapps[127082]:      4: eval
2016-10-04T16:34:56.502818+00:00 shinyapps[127082]:     12: fn
2016-10-04T16:34:56.502822+00:00 shinyapps[127082]:      2: eval.parent
2016-10-04T16:34:56.502819+00:00 shinyapps[127082]:      9: tryCatchList

Joshua Spiewak

unread,
Oct 4, 2016, 1:55:45 PM10/4/16
to shinyapps.io Users
You cannot have an install.packages command in your application.

Tareef Kawaf

unread,
Oct 4, 2016, 1:56:26 PM10/4/16
to Alaka Sarangdhar, shinyapps.io Users
It sounds like you may have an install.packages() call in your application.  You should ONLY have library() calls in your application.  the deploy process will detect the dependencies and automatically install them. If that isn't the case please let us know.


--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/b7411408-12ca-48f4-8dfe-26fe570cc24b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages