The Dreaded tsNet "Error Previous request not completed" iOS app

Ralph DiMola rdimola at evergreeninfo.net
Wed Nov 17 15:03:53 EST 2021


J,

Thanks to you and Charles! I wonder what changed to start this? Was tsNet or
the mobile OSs not strict enough before and these errors were dropping on
the floor or is it a bug introduced by either tsNet or the mobile OSs?

Inquiring minds want to know...

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Wednesday, November 17, 2021 2:44 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: The Dreaded tsNet "Error Previous request not completed" iOS
app

On 11/16/21 6:51 PM, Ralph DiMola via use-livecode wrote:
> iOS app built with LC 9.6.5 rc2 on Big Sur using Xcode 12.5.
> I am doing several synchronous operations in the form "put url 
> (some-url) into tVar". I do 1 or 2 and then every request after that 
> fails.  Played with the various timeouts with no success. I also tried 
> setting tsNetLibUrlReuseConnection to false. This code worked in 
> previous versions of LC. Fails on iPad but works in the IDE. Has 
> anyone seen this? I have a little bit of a time crunch. Any suggestions
would be appreciated.

I asked about the same thing a month ago. Here's the reply by Charles
Warwick:
<https://www.mail-archive.com/use-livecode@lists.runrev.com/msg113554.html>

The essence is:
"In order to fix this, you can use tsNet's asynchronous commands (e.g.
tsNetGet instead of tsNetGetSync, tsNetPost instead of tsNetPostSync, ...)
or libURL's "load URL" command.  The "load URL" command only support HTTP
GET requests which means that if you need to use other types of requests
(e.g. POST) then use the tsNet functions directly."

Rather than rewrite all my scripts I settled for a short wait between
requests.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list