New-UdGrid & New-Udtable stops working with AWS Powershell module

Below is a example code I am using on my dashboard. Dashboard works fine until I run any command from aws powershell module. like set-awscredential, get-wksworkspace.

After running above commands my Dashboard is accessible but grids and tables does not populate any data in it. Refer to snapshot. To fix this I have to quit powershell.exe and relaunch it and run the script again. Again if I use any aws cmdlet then it would stop again.

Horizontal bar keeps moving left to right but data does not populate.

Stop all dashboards

Get-UDDashboard | Stop-UDDashboard

Table with auto update

$Table = New-UDTable -Title “Server Information” -Headers @(“Key”, “Value”) -Endpoint {

@{

   'Computer Name' = $env:COMPUTERNAME

   'Operating System' = (Get-CimInstance -ClassName Win32_OperatingSystem).Caption

   'Total Disk Space (C:)' = (Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceID='C:'").Size / 1GB | ForEach-Object { "$([Math]::Round($_, 2)) GBs " }

   'Free Disk Space (C:)' = (Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceID='C:'").FreeSpace / 1GB | ForEach-Object { "$([Math]::Round($_, 2)) GBs " }

 }.GetEnumerator() | Out-UDTableData -Property @("Key", "Value")

} -AutoRefresh -RefreshInterval 5 -BackgroundColor ‘#9dfaaa

The dashboard

$Dashboard1 = New-UDDashboard -Title “Servers dashboard” -Content{

# Dashboard layout

New-UDLayout -Columns 1 -Content {

    $Table

}

}

Starting the dashboard

Start-UDDashboard -Port 8080 -Name “Servers” -Dashboard $Dashboard1

Create a large dummy file 10GB

#cd C:\temp\

#fsutil file createnew test.txt 12428800000

#Remove-Item -Path C:\temp\test.txt

Code Ends

Any suggestions?

I believe there is a bug with -endpoint for all cmdlets, like in the below command if I change -Content to -Endpoint then it stops working and I get these logs. I have also attached full logs for you to review both working and non working.


#Error logs when using -Endpoint with UDGrids or new-udinput.
“14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler__NON_CLUSTERED shutting down. 14:49:21 [Debug] NewElementCommand HTML 14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler_ NON_CLUSTERED paused.
14:49:21 [Debug] Quartz.Simpl.TaskSchedulingThreadPool Shutting down threadpool…
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] Quartz.Simpl.TaskSchedulingThreadPool Shutdown of threadpool complete.
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler
$_NON_CLUSTERED Shutdown complete.”

$West_Table = New-UDTable -Title “Summary US West (Oregon)us-west-2” -Headers @(" ", " ") -Content {

==================

Complete not working logs are here.

14:49:21 [Debug] StopDashboardCommand ByName - IBEX AWS Dashboard
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“span”,“attributes”:{“className”:“card-title”},“events”:[],“content”:[“Summary US East (N. Virginia)us-east-1”],“type”:“element”,“key”:“41373da0-58cc-45c8-8247-42d04809891c”,“onMount”:null,“id”:“6ae3207d-be61-4375-a523-ab260c8ce471”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“th”,“events”:[],“content”:[" “],“type”:“element”,“key”:“664ad77c-b4c1-4062-8630-e66d8798b592”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“bfdb8371-385d-4b1c-87e4-0116e95a32d2”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“51e00dd9-d344-4902-a2a8-2f8e4ed8c029”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“a7259c54-c4a0-415b-8398-cdeaf91f1c27”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“0df95d89-9c2e-4696-9d2c-d9242da4a6ce”,“onMount”:null,“id”:“c6f7828e-11cc-49e6-9c4e-075aa9410aee”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“69c09c39-1fa3-42f0-90ac-330db50545c3”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“3fa15b06-a7ca-4a8a-b693-a5bd63dc141e”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“97d606a2-2aa9-4802-8b47-c9d2be352f32”,“onMount”:null,“id”:“c6f7828e-11cc-49e6-9c4e-075aa9410aee”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“0daf22ba-16a1-4ce3-9333-bc40ccffc187”,“onMount”:null,“id”:“4870e44d-06f4-47d1-9820-6b68295efdcf”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] EndpointService Register() 12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody
14:49:21 [Debug] EndpointService Unregister() 12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody
14:49:21 [Debug] NewElementCommand {“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“c35bbda4-48d3-44e2-94de-4997465c5150”,“onMount”:null,“id”:“12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}
14:49:21 [Debug] NewElementCommand {“tag”:“table”,“attributes”:{“className”:”"},“events”:[],“content”:[{“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[" “],“type”:“element”,“key”:“9558aed4-ff9a-4cb2-b115-dc80eec10e50”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“899f43fc-68f1-45f9-bdc6-7ba73c1732a5”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“a61f9686-c62f-48ab-9069-d67ab071dff9”,“onMount”:null,“id”:“c6f7828e-11cc-49e6-9c4e-075aa9410aee”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“63633570-b3d6-42e3-b3dd-6e94262da1d3”,“onMount”:null,“id”:“4870e44d-06f4-47d1-9820-6b68295efdcf”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“cf8e21c1-cdee-4325-bf1c-1c36efc7a585”,“onMount”:null,“id”:“12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“42f1af0d-c0fb-464a-80c2-74ce86616140”,“onMount”:null,“id”:“b3e99604-a7f4-4371-9324-3308d3b6e2cb”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:“card-title”},“events”:[],“content”:[“Summary US East (N. Virginia)us-east-1”],“type”:“element”,“key”:“cd0cdf6b-196d-4887-a19a-61dfd65c71d2”,“onMount”:null,“id”:“6ae3207d-be61-4375-a523-ab260c8ce471”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“table”,“attributes”:{“className”:”"},“events”:[],“content”:[{“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[" “],“type”:“element”,“key”:“c384a4c3-9bb2-4182-abb2-8634c304fcaf”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“f11790f3-e9fe-419f-8fd7-31ff40a4e52d”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“35e1be77-eb57-4dcc-ac1c-93d23abdcc1c”,“onMount”:null,“id”:“c6f7828e-11cc-49e6-9c4e-075aa9410aee”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“67089251-50db-401c-9eff-9932b4e0db08”,“onMount”:null,“id”:“4870e44d-06f4-47d1-9820-6b68295efdcf”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“1bd112cf-1d2d-45fd-84c5-61c77579d6d7”,“onMount”:null,“id”:“12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“4e6afd12-5bcf-47ce-bccf-d62738fb5cb7”,“onMount”:null,“id”:“b3e99604-a7f4-4371-9324-3308d3b6e2cb”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“fb2ed614-0a6d-42cb-8038-abf62584d871”,“onMount”:null,“id”:“eda592f9-59f0-4f7f-83b2-729c25798f37”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“div”,“attributes”:{“style”:{“backgroundColor”:null,“color”:null},“className”:“card ud-table”},“events”:[],“content”:[{“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:“card-title”},“events”:[],“content”:[“Summary US East (N. Virginia)us-east-1”],“type”:“element”,“key”:“acdd0105-81d7-4c04-8508-a69d270284a3”,“onMount”:null,“id”:“6ae3207d-be61-4375-a523-ab260c8ce471”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“table”,“attributes”:{“className”:”"},“events”:[],“content”:[{“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[" “],“type”:“element”,“key”:“91e43f21-aec1-401f-8010-716e1c09389c”,“onMount”:null,“id”:“37db1872-62d0-41e4-bd4e-50c2a1aff666”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“a2075fc1-bbfc-4326-bd00-f789e45ef638”,“onMount”:null,“id”:“3e8ac288-d802-4d5f-bfa1-b3fb599c872c”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“962f3b37-576e-4cbc-9ef1-4c8ef631e827”,“onMount”:null,“id”:“c6f7828e-11cc-49e6-9c4e-075aa9410aee”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“9676db3f-efb3-4627-b8c5-bd5ca369ff69”,“onMount”:null,“id”:“4870e44d-06f4-47d1-9820-6b68295efdcf”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“2150df52-f90a-4b91-816b-81a286c7626a”,“onMount”:null,“id”:“12a7f3b3-1d06-481d-9179-1cf7777cbdc2-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“88f946a4-acd8-4d3b-a330-7d4d90e4cd4c”,“onMount”:null,“id”:“b3e99604-a7f4-4371-9324-3308d3b6e2cb”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“b522aed8-23c3-438c-b998-0db270262217”,“onMount”:null,“id”:“eda592f9-59f0-4f7f-83b2-729c25798f37”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“80be629f-b057-4dbc-a9a4-b8307abd4248”,“onMount”:null,“id”:“12a7f3b3-1d06-481d-9179-1cf7777cbdc2”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“span”,“attributes”:{“className”:“card-title”},“events”:[],“content”:[“Summary US West (Oregon)us-west-2”],“type”:“element”,“key”:“7e4a30d9-264f-4472-a136-e4fa34d095f8”,“onMount”:null,“id”:“032ff101-65f4-40c5-9572-8cabc97a731f”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler__NON_CLUSTERED shutting down. 14:49:21 [Debug] NewElementCommand HTML 14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler_NON_CLUSTERED paused.
14:49:21 [Debug] Quartz.Simpl.TaskSchedulingThreadPool Shutting down threadpool…
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] Quartz.Simpl.TaskSchedulingThreadPool Shutdown of threadpool complete.
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Info] Quartz.Core.QuartzScheduler Scheduler QuartzScheduler
$_NON_CLUSTERED Shutdown complete.
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“2f3dabd3-3f6d-49b8-b6b3-3b39fb9f2767”,“onMount”:null,“id”:“33880e4b-9f0f-44b2-ba45-75b7160c2dc3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] NewElementCommand {“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“a6502a97-f3fb-4cfc-868c-7cf14bef7a4b”,“onMount”:null,“id”:“6ff52315-5870-4cbd-9116-39a833a3d5c3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“445ff479-def5-4b37-aba0-695080036712”,“onMount”:null,“id”:“33880e4b-9f0f-44b2-ba45-75b7160c2dc3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“4997f8e1-d232-4138-b633-dc9bd87aa617”,“onMount”:null,“id”:“6ff52315-5870-4cbd-9116-39a833a3d5c3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“a3e27b59-c91f-4709-9073-a4f07b42ca31”,“onMount”:null,“id”:“a26939e0-b8b6-42f9-b729-e7f350b60580”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“a8c5233c-4c9e-4c89-9bbc-5e0ea5a51488”,“onMount”:null,“id”:“33880e4b-9f0f-44b2-ba45-75b7160c2dc3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” “],“type”:“element”,“key”:“ab0639c5-4a51-4c0b-b9a9-4d737da0c874”,“onMount”:null,“id”:“6ff52315-5870-4cbd-9116-39a833a3d5c3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“dfd17987-f57b-4115-8e7e-5dde08aaa360”,“onMount”:null,“id”:“a26939e0-b8b6-42f9-b729-e7f350b60580”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“a5f2819d-dbe9-48f3-8dc2-15121f3bbbb3”,“onMount”:null,“id”:“52545ca5-5b34-4183-b2d6-89dbcf398648”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand HTML
14:49:21 [Debug] EndpointService Register() e8170815-a27b-4741-967c-deea3c127f22-tbody
14:49:21 [Debug] EndpointService Unregister() e8170815-a27b-4741-967c-deea3c127f22-tbody
14:49:21 [Debug] NewElementCommand {“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“6df11db3-01ba-4f85-9a04-73dd48a6098a”,“onMount”:null,“id”:“e8170815-a27b-4741-967c-deea3c127f22-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}
14:49:21 [Debug] NewElementCommand {“tag”:“table”,“attributes”:{“className”:”"},“events”:[],“content”:[{“tag”:“thead”,“events”:[],“content”:[{“tag”:“tr”,“events”:[],“content”:[{“tag”:“th”,“events”:[],“content”:[" “],“type”:“element”,“key”:“ee2dd42c-52a3-4569-a822-601c65185554”,“onMount”:null,“id”:“33880e4b-9f0f-44b2-ba45-75b7160c2dc3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“th”,“events”:[],“content”:[” "],“type”:“element”,“key”:“a68a9f46-5e8e-48e2-aa9d-77cc8b696556”,“onMount”:null,“id”:“6ff52315-5870-4cbd-9116-39a833a3d5c3”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“da029553-d52b-43bc-a5ba-5e4df652ee11”,“onMount”:null,“id”:“a26939e0-b8b6-42f9-b729-e7f350b60580”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}],“type”:“element”,“key”:“a01e2345-79a5-4146-9299-f1aa092f8663”,“onMount”:null,“id”:“52545ca5-5b34-4183-b2d6-89dbcf398648”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false},{“tag”:“tbody”,“events”:[],“type”:“element”,“key”:“4aa28335-6544-4aae-9cca-06858b28fbda”,“onMount”:null,“id”:“e8170815-a27b-4741-967c-deea3c127f22-tbody”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:true}],“type”:“element”,“key”:“f3fa1854-c429-488a-92d3-f6e1161c5d11”,“onMount”:null,“id”:“762ecd93-3cb4-4b53-9aa3-1f271a25e8c0”,“refreshInterval”:5,“autoRefresh”:false,“hasCallback”:false}
14:49:21 [Debug] NewElementCommand {“tag”:“div”,“attributes”:{“className”:“card-content”},“events”:[],“content”:[{“tag”:“span”,“attributes”:{“className”:“card-title”},“events”:[],“content”:[“Summary US West (Oregon)us-west-2”],“type”:“element”,“key”:“a710ca76-61ca-418e-9604-41dcecc96374”,“onMount”:null,“id”:"032ff101-65f4-40c5-9572-