Bugfix ATEZ und Digicust

This commit is contained in:
2023-09-12 12:19:43 +02:00
parent f61bd11de5
commit a73761c233
4 changed files with 403 additions and 117 deletions

View File

@@ -607,10 +607,29 @@ Public Class cATEZ_NCTS_IN
'rest.DebugMode = True
rest.PercentDoneOnSend = True
rest.IdleTimeoutMs = 30000
rest.IdleTimeoutMs = 60000
success = rest.SendReqSb("POST", "/api/integrations/verag", sbRequestBody)
Dim responseStatusCode = rest.ReadResponseHeader()
If (responseStatusCode < 0) Then
For i = 0 To 15 'Versuche den Header 16x abzufragen (funktioniert ab und zu nicht).
responseStatusCode = rest.ReadResponseHeader()
If responseStatusCode > 0 Then Exit For
Thread.Sleep(3000)
i = i + 1
Next
If rest.ResponseStatusCode <> 200 Then
MsgBox(rest.LastErrorText)
Return False
End If
End If
Dim sbResponseBody As New Chilkat.StringBuilder
success = rest.FullRequestSb("POST", "/api/integrations/verag", sbRequestBody, sbResponseBody)
rest.ReadRespSb(sbResponseBody)
If (rest.LastMethodSuccess <> True) Then
Debug.WriteLine(rest.LastErrorText)