Project

General

Profile

Error 2147467260 (80004004) on run time function Send API REST

Added by Pedro Barrera 11 months ago

Hi,

After updating to the version 4.2.10 stable I get an error in Send function. Code VBA example extract:

-----------------------------------------------------------------------------------------------------------------------
Set xhr = CreateObject("Microsoft.XMLHTTP")
xhr.Open "PUT", RequestURL, False
xhr.SetRequestHeader "Content-Type", "text/xml"
RequestBody = ""
RequestBody = RequestBody & "<issue>"
RequestBody = RequestBody & " <custom_fields type=""array"">"
RequestBody = RequestBody & " <custom_field id=""52""><value>" & Trim(Str(P_JA)) & "</value></custom_field>"
RequestBody = RequestBody & " <custom_field id=""60""><value>" & Trim(Str(P_CS)) & "</value></custom_field>"
RequestBody = RequestBody & " </custom_fields>"
RequestBody = RequestBody & "</issue>"

xhr.Send (RequestBody)
-----------------------------------------------------------------------------------------------------------------------

See attachment with image of the error.

Does anyone know how to solve it?

Thanks.