-
Notifications
You must be signed in to change notification settings - Fork 5
Description
After executing the Start-SearchJob command the following error is output to console.
I noticed the build icon was failing in the github readme. The sumo-powershell sdk test was failing for Source Utils.ps1 and my error code is throwing for Lib\Util.ps1:86 shown below. Related?
EXECUTED STATEMENT:
Start-SearchJob -Query $searchQuery -From $StartTime -To $EndTime
ERROR:
WARNING: Enabling TLS 1.2 usage via
[System.Net.ServicePointManager]::SecurityProtocol
Invoke-RestMethod : The remote name could not be resolved: 'search'
At C:\Program
Files\WindowsPowerShell\Modules\sumologic-core\1.1.4**\Lib\Utils.ps1:86** char:5
-
& $cmdlet -Uri $url -Headers $headers -Method $method -WebSession ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], WebExcept
ion - FullyQualifiedErrorId : System.Net.WebException,Microsoft.PowerShell.Com
mands.InvokeRestMethodCommand
- CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], WebExcept
invokeSumoAPI : System.Management.Automation.CmdletInvocationException: The
remote name could not be resolved: 'search' ---> System.Net.WebException: The
remote name could not be resolved: 'search'
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at
Microsoft.PowerShell.Commands.WebRequestPSCmdlet.SetRequestContent(WebRequest
request, String content)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecut
eEnumerate(Object input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input,
Boolean ignoreInput, CommandParameterInternal[][] pipeElements,
CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections,
FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(Inte
rpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.
Run(InterpretedFrame frame)
At C:\Program
Files\WindowsPowerShell\Modules\sumologic-core\1.1.4\Lib\Utils.ps1:111 char:3
- invokeSumoAPI $session $headers $method $function $query $body (Get ...
-
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,invokeSumoAPI
Job creation fail
At C:\Program Files\WindowsPowerShell\Modules\sumologic-core\1.1.4\SearchJob\St
art-SearchJob.ps1:81 char:9
-
throw "Job creation fail" -
~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : OperationStopped: (Job creation fail:String) [],
RuntimeException - FullyQualifiedErrorId : Job creation fail
- CategoryInfo : OperationStopped: (Job creation fail:String) [],