ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

Script removal (Remove-UAScript) from CLI/scripts and GUI doesnt work: #27

Closed adamdriscoll closed 4 years ago

adamdriscoll commented 4 years ago

Describe the Issue

Script removal (Remove-UAScript) from CLI/scripts and GUI doesnt work:

To Reproduce

Tried CLI syntax e.g.: Remove-UAScript -Script (Get-UAScript -id 1) -AppToken $token

Call failed with status code 500 (Internal Server Error): DELETE http://example:10000/api/v1/Script/1 An unhandled exception was thrown by the application. LibGit2Sharp.NotFoundException: could not find ‘C:/Users/x/AppData/Local/UniversalAutomation/Repository/TEst.ps1’ to stat: Das System kann die angegebene Datei nicht finden.)

Expected behavior

Script is removed

Screenshots

If applicable, add screenshots to help explain your problem.

Script Sample

Attempt to attach sample code that will allow others to reproduce the issue. NOTE: Generally speaking this is the MOST EFFECTIVE way to have your issue resolved.

Version Information

leeberg commented 4 years ago

Note! I have found that if you "keep trying" to delete - it does work eventually.

You can literally go through CMDlets / GUI and it will fail but keep trying and it'll work.

adamdriscoll commented 4 years ago

Fixed