REST API knowledge exchange
jw_ic
Enthusiast
Posts: 34 Liked: never
Joined: Oct 25, 2017 1:26 pm
Full Name: James Wuerflein
Contact:
Post
by jw_ic » Dec 04, 2020 6:26 pm
this post
Doing a file restore after getting the vmREestorePoints and mounting the restore point. The mount of the restore point is successful, however, when I go to request the actual restore I'm getting this particular error. Can anyone help me?
Thanks!
Code: Select all
Invoke-WebRequest : {"FirstChanceExceptionMessage":null,"StackTrace":null,"Message":"Failed to invoke method [WaitForLoaderCreationComplete]. Spec: []","StatusCode":500,"Status":"InternalServerError"}
At line:1 char:11
+ $result = Invoke-WebRequest -Uri $uri -method post -Headers $headers ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
jhoughes
Veeam Vanguard
Posts: 282 Liked: 113 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:
Post
by jhoughes » Dec 04, 2020 6:30 pm
this post
For anyone to be able to assist, you would need to post the full details for the Invoke-WebRequest line that you ran, along with the variables that you used for those parameters.
Also, for easier use, I would suggest that you look into 'Invoke-RestMethod' when trying to drive REST APIs via PowerShell.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
jw_ic
Enthusiast
Posts: 34 Liked: never
Joined: Oct 25, 2017 1:26 pm
Full Name: James Wuerflein
Contact:
Post
by jw_ic » Dec 04, 2020 8:06 pm
this post
Case #04530653
Should probably just do it that way.
jw_ic
Enthusiast
Posts: 34 Liked: never
Joined: Oct 25, 2017 1:26 pm
Full Name: James Wuerflein
Contact:
Post
by jw_ic » Dec 04, 2020 8:44 pm
this post
Found solution. Had the wrong file path for what I was trying to restore.
Thanks!
Users browsing this forum: No registered users and 2 guests