I'm trying to sync Unicorn (4.1.1) on Habitat 1.8 (Sitecore 9.2). I'm running Visual Studio 2019 as Admin and PowerShell execution policy is for CurrentUser = Bypass and for LocalMachine = Unrestricted.
Also it did sync "Project.Habitat.Website" project after this sync it throws an error.
Project.Habitat.Website role sync complete.
Completed in 261ms.
****ERROR OCCURRED****
Error: Unicorn Sync to http://habitat.dev.local/unicorn.aspx?verb=Sync&configuration=&skipTransparentConfigs=0 returned an
Error: error. See the preceding log for details.
At C:\Projects\Github\habitat18sc920\scripts\Unicorn\Unicorn.psm1:66 char:3
Error: + throw "Unicorn $Verb to $url returned an error. See the prece ...
Error: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: + CategoryInfo : OperationStopped: (Unicorn Sync to...og for details.:String) [], RuntimeException
+ FullyQualifiedErrorId : Unicorn Sync to http://habitat.dev.local/unicorn.aspx?verb=Sync&configuration=&skipTrans
parentConfigs=0 returned an error. See the preceding log for details.
C:\Projects\Github\habitat18sc920\scripts\unicorn.js:44
if (err !== null) throw err;
^
Error: Command failed: powershell -executionpolicy unrestricted "C:\Projects\Github\habitat18sc920\scripts/Unicorn/./Sync.ps1 -secret 749CABBC85EAD20CE55E2C6066F1BE375D2115696C8A8B24DB6ED1FD60613086 -url http://habitat.dev.local/unicorn.aspx"
Unicorn Sync to http://habitat.dev.local/unicorn.aspx?verb=Sync&configuration=&skipTransparentConfigs=0 returned an
error. See the preceding log for details.
At C:\Projects\Github\habitat18sc920\scripts\Unicorn\Unicorn.psm1:66 char:3
+ throw "Unicorn $Verb to $url returned an error. See the prece ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unicorn Sync to...og for details.:String) [], RuntimeException
+ FullyQualifiedErrorId : Unicorn Sync to http://habitat.dev.local/unicorn.aspx?verb=Sync&configuration=&skipTrans
parentConfigs=0 returned an error. See the preceding log for details.
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:610:12)