You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the fetch data button is clicked this data is sent.
The shiny server is currently hosted on an Amazon EC2 R6a Large instance.
Issue
Depending on the parameters the user selects, the data can be small or huge. When the parameters are such that the data is a huge JSON object, there is an error given and the server disconnects with the following messages:
I have tested the same scenarios but without sending the data through session$sendCustomMessage("handler", data) and am not able to reproduce the error. It seems like sending a huge amount of data through the network causes the shiny server to disconnect.
This error does not occur locally with the same parameters in RStudio and only happens on the shiny server ec2 environment.
What could be the fix for this?
The text was updated successfully, but these errors were encountered:
Mush-A
changed the title
Shiny server - Sending huge data through custom message Error
Sending huge data through custom message Error
Jan 20, 2023
Context
A shiny application I work on sends processed data through:
session$sendCustomMessage("handler", data)
The Javascript on the front end catches this message and does some visualizations:
Shiny.addCustomMessageHandler('handler', (data) => visualizer(data))
When the
fetch data
button is clicked this data is sent.The shiny server is currently hosted on an Amazon EC2 R6a Large instance.
Issue
Depending on the parameters the user selects, the data can be small or huge. When the parameters are such that the data is a huge JSON object, there is an error given and the server disconnects with the following messages:
I have tested the same scenarios but without sending the data through
session$sendCustomMessage("handler", data)
and am not able to reproduce the error. It seems like sending a huge amount of data through the network causes the shiny server to disconnect.This error does not occur locally with the same parameters in RStudio and only happens on the shiny server ec2 environment.
What could be the fix for this?
The text was updated successfully, but these errors were encountered: