Disconnect time out

I have a dashboard with input used for ad querying running on iis

If it is idle for a few minutes the next time i use it i recieve the “Cannot send data if the connection is not in the ‘Connected’ State”

Seems dashboard automatically times out after a certain time…anyway to prevent the timeout or increase the time it takes to timeout? thanks

In my dashboard I have few input to query SQL data or remote services and luckily I have faced this issue (rare) even after keeping my page idle for hours. in such case if I refresh the page web socket connection is reestablish and it works fine.

However there is already a open topic related to this issue. Cannot send data if the connection is not in the 'Connected' State

It points to web socket connection disconnection. You can check errors in developer tools (F12) and see if this is same issue you are facing.

2 Likes

Yes will do. This is still happening on 2.6.2. If one just sets up a few navigation links that open in a new window, this should reproduce the issue.

I’ll need to do this tomorrow morning, since the dashboard is running behind company VPN.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Here is the error message in the console received after getting the message, 'Can not connect…".

The first Nav Link works fine.

New-UDSideNavItem -Text “Health - Physical Layer” -icon table -OnClick { Invoke-UDRedirect

Subsequent clicks on Nav Links that Invoke-UDRedirect get an error message.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

@cadayton

I never used Nav Links so created a sample page to check the issue you mention. In below example, you are able to access NavLink1 but fail to navigate to NavLink2? right. If it something else can you share a code to reproduce this issue.

I am on 2.6.2 I am able to navigate to all subsequent NavLinks.

$Page1 = New-UDPage -Name “Page Name” -Content { New-UDCard -Id ‘page-1’ -Title “Page 1”}

$Navigation = New-UDSideNav -Endpoint {
New-UDSideNavItem -Text “Link 1” -OnClick { Invoke-UDRedirect -Url “/NavLink1”} -icon table
New-UDSideNavItem -Text “Link 2” -OnClick { Invoke-UDRedirect -Url “/NavLink2”} -icon table
}

$Navtest1 = New-UDPage -Url “/NavLink1” -Endpoint {
New-UDColumn -SmallSize 6 -MediumSize 6 -LargeSize 6 -Content {
New-UDCard -Title "Nav Link 1 -Content {
}
}
}
$Navtest2 = New-UDPage -Url “/NavLink2” -Endpoint {
New-UDColumn -SmallSize 6 -MediumSize 6 -LargeSize 6 -Content {
New-UDCard -Title “Nav Link 2” -Content {
}
}
}
$Dashboard = New-UDDashboard -Title “Navigation” -Pages @($Page1, $Navtest1, $Navtest2) -Navigation $Navigation
Start-UDDashboard -Name “Check” -Port 10001 -Dashboard $Dashboard -AutoReload

Working your example. I’m not able to reproduce it either yet. But trying different variations in an attempt to reproduce the issue with this example.

Oops. I spoke too soon. Just returned to the dashboard click a link and got the error returned after adding the following 2 nav links. It doesn’t always happen consistently so you’ll have to try the links I added multiple times.

Modified your example as follows:
Top line of code:
Import-Module -Name UniversalDashboard.Community -RequiredVersion 2.6.2

Added the following Nav links.

  New-UDSideNavItem -Text "StartPage" -OnClick { Invoke-UDRedirect -Url "https://startpage.com" -OpenInNewWindow } -icon google
  New-UDSideNavItem -Text "UD Forums" -OnClick { Invoke-UDRedirect -Url "https://forums.ironmansoftware.com/" -OpenInNewWindow } -icon wine_bottle

Im getting an error after the dashboard is ideal for like an hour and then when i click on something im getting the error, the dashboard is hosting on azure

I experience the same issue - Dashboard is idle for a bit then I click anything and get the “Cannot send data if the connection is not in the ‘Connected’ State” error - But when I refresh 90% of the time I am prompted to log back in.

Could this be your issue? session timeout requiring to log back in? Would be nice for UD to automatically kick you back to the login page if the session expires :wink:

I was reading about this, and its a signalr bug

Okay good to know that it’s a known bug.

:laughing::laughing::laughing::laughing::laughing: and they marge a pr that fix this like an hour ago…

2 Likes

I am not using Login Page but It could be a enhancement for users using Login page to prompt about page expire. If there is some timeout set and is not related to the bug @AlonGvili mentioned.

Does this mean there is a fix to the issue of the dashboard giving the not connectes state after a few minutes of being idle when set up on iis

If so how do i apply it?