Closed rychannel closed 6 years ago
Using -debug switch to see what's going on
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 4:16:43 AM To: yoke88/PSPHPIPAM Cc: Subscribed Subject: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
`Import-Module PSPHPIPAM
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodmen.net/phpipam/api/' -AppID powershell -AppKey `
All I get is the following error... doesn't give a clue where to start troubleshooting...
`new-PhpIpamSession : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown. At H:\windows_scripts\phpipam\phpipam-cheat.ps1:19 char:1
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodme ...
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-PhpIpamSession`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8pyq5IRG794C2bFqbM2mxwZK1Rlaks5uJ4CrgaJpZM4VdqAQ.
-debug doesn’t return anything extra
On Jul 24, 2018 at 8:40 PM, <yoke88 (mailto:notifications@github.com)> wrote:
Using -debug switch to see what's going on
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 4:16:43 AM To: yoke88/PSPHPIPAM Cc: Subscribed Subject: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
`Import-Module PSPHPIPAM
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodmen.net/phpipam/api/' -AppID powershell -AppKey `
All I get is the following error... doesn't give a clue where to start troubleshooting...
`new-PhpIpamSession : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown. At H:\windows_scripts\phpipam\phpipam-cheat.ps1:19 char:1
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodme ...
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-PhpIpamSession`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8pyq5IRG794C2bFqbM2mxwZK1Rlaks5uJ4CrgaJpZM4VdqAQ.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/yoke88/PSPHPIPAM/issues/3#issuecomment-407605143), or mute the thread (https://github.com/notifications/unsubscribe-auth/AArva8ZsAlLy0MgY6i1ZjrPis9dB206Wks5uJ8x4gaJpZM4VdqAQ).
I have noticed that your url was https based, maybe the ca is nit trust, change to http and try?
Invoke-webrest does not have a switch to ignore untrust cert
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 9:47:17 AM To: yoke88/PSPHPIPAM Cc: yoke88; Comment Subject: Re: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
-debug doesn’t return anything extra
On Jul 24, 2018 at 8:40 PM, <yoke88 (mailto:notifications@github.com)> wrote:
Using -debug switch to see what's going on
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 4:16:43 AM To: yoke88/PSPHPIPAM Cc: Subscribed Subject: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
`Import-Module PSPHPIPAM
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodmen.net/phpipam/api/' -AppID powershell -AppKey `
All I get is the following error... doesn't give a clue where to start troubleshooting...
`new-PhpIpamSession : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown. At H:\windows_scripts\phpipam\phpipam-cheat.ps1:19 char:1
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodme ...
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-PhpIpamSession`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8pyq5IRG794C2bFqbM2mxwZK1Rlaks5uJ4CrgaJpZM4VdqAQ.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/yoke88/PSPHPIPAM/issues/3#issuecomment-407605143), or mute the thread (https://github.com/notifications/unsubscribe-auth/AArva8ZsAlLy0MgY6i1ZjrPis9dB206Wks5uJ8x4gaJpZM4VdqAQ).
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3#issuecomment-407606304, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8tPkHfawSdHApPCoRetCZTTcCTRgks5uJ84lgaJpZM4VdqAQ.
My typo, invoke-restmethod does not have a switch to ignore untrust cert before powershell 6, there may be some hacks there, i will try to test this.
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 9:47:17 AM To: yoke88/PSPHPIPAM Cc: yoke88; Comment Subject: Re: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
-debug doesn’t return anything extra
On Jul 24, 2018 at 8:40 PM, <yoke88 (mailto:notifications@github.com)> wrote:
Using -debug switch to see what's going on
?取 Outlook for Androidhttps://aka.ms/ghei36
From: rychannel notifications@github.com Sent: Wednesday, July 25, 2018 4:16:43 AM To: yoke88/PSPHPIPAM Cc: Subscribed Subject: [yoke88/PSPHPIPAM] Just getting generic error when trying to start phpIpam session (#3)
`Import-Module PSPHPIPAM
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodmen.net/phpipam/api/' -AppID powershell -AppKey `
All I get is the following error... doesn't give a clue where to start troubleshooting...
`new-PhpIpamSession : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown. At H:\windows_scripts\phpipam\phpipam-cheat.ps1:19 char:1
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodme ...
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-PhpIpamSession`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8pyq5IRG794C2bFqbM2mxwZK1Rlaks5uJ4CrgaJpZM4VdqAQ.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/yoke88/PSPHPIPAM/issues/3#issuecomment-407605143), or mute the thread (https://github.com/notifications/unsubscribe-auth/AArva8ZsAlLy0MgY6i1ZjrPis9dB206Wks5uJ8x4gaJpZM4VdqAQ).
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/yoke88/PSPHPIPAM/issues/3#issuecomment-407606304, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAB8tPkHfawSdHApPCoRetCZTTcCTRgks5uJ84lgaJpZM4VdqAQ.
the same issue as #1 ,the reason was invoke-restmethod cmdlet did not support ignoring untrust cert, and i have added a hack to resolve this issue.
`Import-Module PSPHPIPAM
new-PhpIpamSession -useAppkeyAuth -phpIpamApiURL 'https://ipam.woodmen.net/phpipam/api/' -AppID powershell -AppKey
`
All I get is the following error... doesn't give a clue where to start troubleshooting...
`new-PhpIpamSession : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown. At H:\windows_scripts\phpipam\phpipam-cheat.ps1:19 char:1