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

Attempting to reconnect message #579

Open
cwilligv opened this issue Nov 19, 2024 · 6 comments
Open

Attempting to reconnect message #579

cwilligv opened this issue Nov 19, 2024 · 6 comments

Comments

@cwilligv
Copy link

cwilligv commented Nov 19, 2024

Hi,
I'm running a shiny app with R server on google cloud run and every 15 secs aproximately I get this message on the lower left side of the screen.

Is there a way to remove it or set up the time it appears?

image

I've found this post where they attempt to remove it but the solution requires to modify the shiny-server-client.min.js file which I'd prefer not to.

@philibe
Copy link

philibe commented Nov 19, 2024

15 secondes is a very short duration: therefore IMHO the issue is elsewhere in your application.

@cwilligv
Copy link
Author

Thanks @philibe but I didn’t quite understand your point about the 15 seconds and what makes you think the issue is somewhere in my app. As far as I can see I don’t have control over that message at all, it comes while I’m working on the app. It’s like a background process that runs every 15 secs.

@philibe
Copy link

philibe commented Nov 19, 2024

There is often timeout even in shiny, but in this case of short duration it could not be a simple timeout.

In others terms you are trying to hide the message but not to resolve the cause: it's not normal to be disconnected every 15 seconds.

  • Maybe it's the windows or linux server
  • Maybe it's the database server
  • Maybe it's the shiny server
  • Maybe it's in the R code
  • Maybe the API from Google Map

etc...

The application timeout in shiny server is 60 seconds.

https://docs.posit.co/shiny-server/#application-timeouts

@FSanto001
Copy link

Hi did you manage to find the solution

@cwilligv
Copy link
Author

There is often timeout even in shiny, but in this case of short duration it could not be a simple timeout.

In others terms you are trying to hide the message but not to resolve the cause: it's not normal to be disconnected every 15 seconds.

  • Maybe it's the windows or linux server
  • Maybe it's the database server
  • Maybe it's the shiny server
  • Maybe it's in the R code
  • Maybe the API from Google Map

etc...

The application timeout in shiny server is 60 seconds.

https://docs.posit.co/shiny-server/#application-timeouts

Thanks @philibe for the suggestions, I'll go through each and see what might be causing it, it could one by itself or in combination, who knows. Will update with results later.

Cheers.

@cwilligv
Copy link
Author

Hi did you manage to find the solution

No I haven't @FSanto001. Luckily my client is patient and this doesn't bother them too much but it does to me :) so I'm keen to find a solution or workaround.
Can you share your setup and how is it happening to you? do you see the same messages in the dev console as me?

Cheers.

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

3 participants