Issue ID:
Type
Bug
Title:
FIX: Invalid cast from 'System.String' to 'Inedo.Data.VarBinaryInput' with NativeAPI
Created:
2/4/2025 11:17:02 AM by Dean H
Status:
Awaiting Release on 2/6/2025 9:53:30 PM
Last pulled:
2/7/2025 10:50:21 PM
Description:
Running this locally is fine, but I ran against an IIS-deployed instance of Otter: ``` Invoke-WebRequest -Method Post -Uri "http://otter/api/json/Rafts_CreateOrUpdateRaftItem" -Body @{ API_Key = "abc123" Raft_Id = 1 RaftItemType_Code = 4 RaftItem_Name = "mypath/myscript.ps1" ModifiedOn_Date = Get-Date ModifiedBy_User_Name = "API" Content_Bytes = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("'hello world'")) } -UseDefaultCredentials ``` Error is "Invalid value for "Content_Bytes": Invalid cast from 'System.String' to 'Inedo.Data.VarBinaryInput'."