Greg Dirst | I am getting a 12007 response when checking the status of the response from XMLHTTP. [url=https://bogusaddress.com/vmrest/users/https://bogusaddress.com/vmrest/users//credential/pin Here is a snippet of the code executing when this occurs. The 12007 code is discovered at line 500 and reported by line 510. This is happening in our dev environment, but not production yet. '-- reset password for user if we found '-- the user on a unity server above 460 objXML.Open "PUT", "https://" & sUMServerToResetAgainst & "/vmrest/users/" & sUserObjectId & "/credential/pin", False, "boguser", "boguspassword" 470 objXML.setRequestHeader "Authorization", "Basic " & Base64Encode("bogususer:boguspassword") 480 objXML.setRequestHeader "Content-Type", "application/xml" '-- this error handler is added since there is '-- an existing defect with XMLHTTP '-- where return code 204 is changed to a '-- 1223 exception. The XMLHTTP is '-- incorrectly considering a 204 response '-- as an error when it really isn't. On Error Resume Next 490 objXML.send "<Credential>" & _ "<UserObjectId>" & sUserObjectId & "</UserObjectId>" & _ "<CredentialType>4</CredentialType>" & _ "<Credentials>" & sPassword & "</Credentials>" & _ "<Locked>0</Locked>" & _ "</Credential>" On Error GoTo End_of_Method '-- if a 1223 is found consider this a successful '-- call for the password was reset 500 If objXML.Status <> "200" And objXML.Status <> "204" And objXML.Status <> "1223" Then 510 Err.Raise vbObjectError + 12, cMethodName, "There was a problem with the reset password request" & vbCrLf & vbCrLf & "[" & objXML.Status & "] " & objXML.responseText 520 End If |