carbonblack / carbon-cli

Other
3 stars 2 forks source link

unable to connect to https://defense-eu.conferdeploy.net #44

Open mohammedha opened 1 week ago

mohammedha commented 1 week ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

ErrorRecord                 : Cannot connect to the server
WasThrownFromThrowStatement : False
TargetSite                  : System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSObject] Invoke(System.Collections.IEnumerable)
Message                     : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot connect to the server
Data                        : {[System.Management.Automation.Interpreter.InterpretedFrameInfo, System.Management.Automation.Interpreter.InterpretedFrameInfo[]]}
InnerException              :
HelpLink                    :
Source                      : System.Management.Automation
HResult                     : -2146233087
StackTrace                  :    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
                                 at Microsoft.PowerShell.Executor.ExecuteCommandHelper(Pipeline tempPipeline, Exception& exceptionThrown, ExecutionOptions options)

Expected behavior Connect successfully, I am able to connect with the same ID, ORG and Token using Postman

2024-09-17_14h17_12

Screenshots If applicable,

2024-09-17_14h14_01

Desktop (please complete the following information):

Additional context I am able to connect via postman using the same API key

emitreva-cb commented 4 days ago

It should be fixed, can you please pull the latest changes and retest? Carbon cli was adding additional / at the end, which caused this error, if you test via Postman with extra / you are going to see the error too.

mohammedha commented 4 days ago

Thank you.

emitreva-cb commented 4 days ago

@mohammedha, can we close this issue if is working now?