Udstudio crash/hang

Hi,

I’m trying to build a restapi in UD, and for this project im trying to use udstudio to simplify my debugging.
The issue im encountering is that the udstudio extension seems to hang/crash whenever I submit data to my restapi. The data is just a string with the word test in it, nothing extrodinary that should crash things.

My flow is like this,

  1. start ud dasboard
  2. submit my restrequest with invoke-restmethod
    3.refresh the udstudio tab to view if my variable was set, which causes udstudio to hang.

after little whild of hanging the console is spammed with
Import-Module ‘c:\Users\MYUSERNAME.vscode\extensions\ironmansoftware.udstudio-0.1.7\out\modules\UDStudio.VSCode\UDStudio.VSCode.psd1’

As if it is trying to reimport the extension, but it does not manage do do it.

My api endpoint is just this now:
New-UDEndpoint -Url “/monitoring/” -Method “POST” -Endpoint {

param(

    $hostname,

    $metric

)

$cache:debugtext=$metric

}

and my dashboard is this:

$Dashboard = New-UDDashboard -Title “Hello, World!” -Content {

New-UDCard -Text "test123"

}
Stop-UDDashboard -Port 10001

Start-UDDashboard -Dashboard $Dashboard -Port 10001 -Endpoint (. C:\Users\USERNAME\git\monitoringapi.ps1) ###This the path to a file with the api code above

Any ide as to what is happening?

I have tried to reinstall vscode module to no avail :frowning: