J jnbarban Member Licensed User Longtime User Sep 6, 2021 #1 Hello, We have a problem with the HttpJob: The JobDone never runs, and the log contains the following message: "sending message to waiting queue of uninitialized activity (submitjob)" my code : B4X: Copy Dim job As HttpJob job.Initialize("", Me) job.Download("https://www.google.com") ' job.PostString("https://www.google.com","") Wait For (job) JobDone(job2 As HttpJob) If job2.Success Then Log(job2.GetString) End If job2.Release Log("ca sort") the log attached Thank you
Hello, We have a problem with the HttpJob: The JobDone never runs, and the log contains the following message: "sending message to waiting queue of uninitialized activity (submitjob)" my code : B4X: Copy Dim job As HttpJob job.Initialize("", Me) job.Download("https://www.google.com") ' job.PostString("https://www.google.com","") Wait For (job) JobDone(job2 As HttpJob) If job2.Success Then Log(job2.GetString) End If job2.Release Log("ca sort") the log attached Thank you
DonManfred Expert Licensed User Longtime User Sep 6, 2021 #2 Are you sure you are using okhttputils2 Library? Away from that you are posting in the wrong forum. Last edited: Sep 6, 2021 Upvote 0
J jnbarban Member Licensed User Longtime User Sep 6, 2021 #3 Sorry for the wrong forum. How do we change this? and we are using okhttputils2 v2.96. This is an old project that we are updating. This code works in a test project but not in our application, and we can't find out why. I saw in another post that we get this message when the activity is paused, but this is not the case. Upvote 0
Sorry for the wrong forum. How do we change this? and we are using okhttputils2 v2.96. This is an old project that we are updating. This code works in a test project but not in our application, and we can't find out why. I saw in another post that we get this message when the activity is paused, but this is not the case.
DonManfred Expert Licensed User Longtime User Sep 6, 2021 #4 Are you using the Code modules (old httputils lib) in your project? Can you upload the B4A-File of the problematic project? ZIP it and upload. The full app-source is not needed. The B4A File should work to find out more. Upvote 0
Are you using the Code modules (old httputils lib) in your project? Can you upload the B4A-File of the problematic project? ZIP it and upload. The full app-source is not needed. The B4A File should work to find out more.
Erel B4X founder Staff member Licensed User Longtime User Sep 7, 2021 #5 Simplest solution is to switch to B4XPages. With B4XPages the "context" is never paused and such issues won't happen. The other option is to move the http requests to the Starter service. Upvote 0
Simplest solution is to switch to B4XPages. With B4XPages the "context" is never paused and such issues won't happen. The other option is to move the http requests to the Starter service.
J jnbarban Member Licensed User Longtime User Sep 7, 2021 #6 Hello, thanks for your help, i managed to get it to work. I reinitialized the manifest, and it unblocked immediately. But I don't understand why yet because the old and the new are the same Upvote 0
Hello, thanks for your help, i managed to get it to work. I reinitialized the manifest, and it unblocked immediately. But I don't understand why yet because the old and the new are the same