-
Notifications
You must be signed in to change notification settings - Fork 10
Description
We have a GMC with read only API enabled. When using the Receive-IBFile using the GMC it errors with
Receive-IBFile: Converstion from JSON failed with error: Additional text encountered after finished reading JSON content: N. Path '', line 3, position 4.
Using the version 1.x method in the Definitive REST examples page the error that returns is:
ConvertFrom-Json: /home/jbaize/.local/share/powershell/Modules/Posh-IBWAPI/4.1.0/Public/Invoke-IBWAPI.ps1:210
Line |
210 | $wapiErr = ConvertFrom-Json $body -EA Ignore
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Conversion from JSON failed with error: Additional text encountered after finished reading JSON content: N. Path '', line 3, position 4.
Using Invoke-Webrequest gives 404 not found. So when I look at the $dl.url the response has the IP address of the GM active management IP even though the profile is using the FQDN of the GMC's management IP. I noticed similar behavior when using the GM VIP FQDN for API CSV export, that the URL was the IP of the active node management IP. When I change the GM MGMT IP to the GMC's MGMT IP/FQDN then it downloads the file. So the file is generated on the GMC, but the URL returned in Invoke-IBFunction gives the GM's MGMT IP.
I figure this is likely something on the Infoblox side doing this, but wanted to see if you had seen this behavior before. Even if its not in your code, I know you would be curious like me about this unexpected behavior (like digging into NetMRI import).