Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few issues I encountered and resolutions for them #2

Open
jhowel opened this issue Apr 1, 2022 · 1 comment
Open

A few issues I encountered and resolutions for them #2

jhowel opened this issue Apr 1, 2022 · 1 comment

Comments

@jhowel
Copy link

jhowel commented Apr 1, 2022

There are numerous ’ characters that need to be replaced with '.

The following needs to be added in the various function Process>Try sections before the invoke-restmethod:

PROCESS{

    if ($coun = $true){

         #API call
         Write-Verbose -Message "Requesting data from IBM XForce"

        try{
        
            $proceed  = $true
            if($Domain -ne ""){
                **[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null**
                $pDNS = $(Invoke-RestMethod -Uri "$API_URI/$Domain" -Method: Get -Headers $head)

If you don't you'll see write-error errors.

After sorting out the above issues, the scripts work very well.

@AchrafBenmasaoud
Copy link

Hey @jhowel

I have some troubling to understand the script. Could we chat a bit, if you don't mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants