我有下一个vb .net软件来执行Rest API调用: [在此输入图像说明] [1]
Dim jsonContentBody As String = stringWriter.ToString
Dim RestClient1 As New RestClient(myPars.url & "shipment/v2_1/label")
Dim request1 As New RestRequest
request1.Method = Method.POST
request1.AddHeader("apikey", myPars.apikey)
request1.AddHeader("Content-Type", contentType)
request1.AddQueryParameter(name:="confirm", value:=confirm.ToString.ToLower)
request1.RequestFormat = DataFormat.Json
request1.AddBody(jsonContentBody)
Dim response1 As IRestResponse(Of List(Of String)) = RestClient1.Execute(Of List(Of String))(request:=request1)
我不断得到谷歌无法帮助的下一个错误。 有人有线索吗 ? {“fault”:{“faultstring”:“执行proxyPreFlow在第8行失败,错误:null”,“detail”:{“errorcode”:“steps.javascript.ScriptExecutionFailedLineNumber”}}}
将JSONBody提交到SOAPUI或Postman没有问题!?