B4J Question wait for httpjob hangs up

gmachacek

Member
Licensed User
Longtime User
Hello, does anybody have an idea. Line "If job.Success .. " is never reached. Try catch shows no error. It looks like "Wait For (jobBatch ... " hangs up!
Communication with the server is functioning well in other cases, but in that case i need methode "DELETE" an can't make it work.

B4X:
Public Sub batchDeleteItem(reqParameters As String) As ResumableSub

    Try
        Dim jobBatchDeleteItem As HttpJob
        jobBatchDeleteItem.Initialize("BatchDeleteItem",Me)

        jobBatchDeleteItem.GetRequest.InitializeDelete2(EslSystem.url & "item/batchDeleteItem",reqParameters.GetBytes("UTF8"))

        jobBatchDeleteItem.GetRequest.SetHeader("Authorization","" & actLoginSuccess.token & "")
        jobBatchDeleteItem.GetRequest.SetContentType("application/json")

        Wait For (jobBatchDeleteItem) JobDone (job As HttpJob)
               
        actBatchDeleteItem.Initialize
        If job.Success = True Then
            If job.JobName = "BatchDeleteItem" Then
                Dim mapGetErpPublicKey As Map
                Dim Json As JSONParser
                Json.Initialize(job.GetString)

Thx in advance for your help
Georg
 

gmachacek

Member
Licensed User
Longtime User
The Server is not in my hand. Will clear this also with the server owner and let you all know. Thanks for now.
@William: I think this might be the case, in all other calls it is working perfect, just the same way.
Regards Georg and thx for your replies
 
Upvote 0
Top