F FrankDev Active Member Licensed User Longtime User Aug 6, 2020 #1 Hello , I send a Json file to a server and wait for confirmation of the transmission (transfer: "success"). The file is transferred and the data is immediately written to a database. (There are 'only' about 200 records in the Json file) Unfortunately, this process takes a very long time, about 40 seconds, and only after that 'success' is sent. After 30 seconds my app has already given up with 'Timeout'. I want to increase the timeout (wait for answer) to 60 sec. is that 'so' right? B4X: Copy Dim job As HttpJob job.Initialize("job",Me) job.PostString(Server ,param) job.GetRequest.Timeout = 60000 '<----NEU job.GetRequest.SetContentType("application/json") regards Frank
Hello , I send a Json file to a server and wait for confirmation of the transmission (transfer: "success"). The file is transferred and the data is immediately written to a database. (There are 'only' about 200 records in the Json file) Unfortunately, this process takes a very long time, about 40 seconds, and only after that 'success' is sent. After 30 seconds my app has already given up with 'Timeout'. I want to increase the timeout (wait for answer) to 60 sec. is that 'so' right? B4X: Copy Dim job As HttpJob job.Initialize("job",Me) job.PostString(Server ,param) job.GetRequest.Timeout = 60000 '<----NEU job.GetRequest.SetContentType("application/json") regards Frank
F FrankDev Active Member Licensed User Longtime User Aug 6, 2020 #3 Hi, Marco, I haven't heard anything for a long time. I hope you're well! thanks for the confirmation. I was able to test it before. It worked. regards Frank Upvote 0
Hi, Marco, I haven't heard anything for a long time. I hope you're well! thanks for the confirmation. I was able to test it before. It worked. regards Frank