Page 1 of 1

"put/get URL" always returns empty in LC8

Posted: Sun Aug 21, 2016 10:49 am
by theotherbassist
I've been off Livecode for a bit, so maybe I missed something.
In version 8, "get URL" seems to never return anything. For instance, the steps in the tutorial http://lessons.livecode.com/m/4071/l/75 ... revolution appear to fail now. All I'm trying to do is test for an internet connection, but the variable I place the result into always comes up empty following get URL.

Re: "put/get URL" always returns empty in LC8

Posted: Sun Aug 21, 2016 6:24 pm
by jacque
I'm having a similar issue with POST. The problem I'm seeing is that after a single failure, internet connections remain nonfunctional until a relaunch.

Add a check for the result after the GET and if you see "Previous request not completed" then it's the same bug. The issue is that the socket timeout isn't respected and connections are hung.

I'll be reporting this. Meanwhile, relaunch LC and see if that clears it up.

Re: "put/get URL" always returns empty in LC8

Posted: Sun Aug 21, 2016 7:00 pm
by theotherbassist
Hmmm. Well I'm always returning the result, it's just always empty whether I have www access or not...

Re: "put/get URL" always returns empty in LC8

Posted: Sun Aug 21, 2016 7:07 pm
by jacque
Okay, then your issue is different. I assume the URL works in a browser app?

Re: "put/get URL" always returns empty in LC8

Posted: Tue Aug 23, 2016 8:14 pm
by theotherbassist
Yeah, I'm not even getting anything from google.com. Just as an example, the tutorial I posted on the original ? doesn't work in 8 if you download it and try. It's such a basic function that it's not worth uploading a stack.

Re: "put/get URL" always returns empty in LC8

Posted: Tue Aug 23, 2016 8:15 pm
by theotherbassist
But other web functions work, e.g. XML stuff, so it cant be an inability for live ode to connect to the outside world altogether

Re: "put/get URL" always returns empty in LC8

Posted: Tue Aug 23, 2016 8:53 pm
by KimD
POST to URL is working for me (LC8.0.2). I haven't tried PUT or GET.

Re: "put/get URL" always returns empty in LC8

Posted: Tue Aug 23, 2016 9:37 pm
by jacque
I should have specified that my issue happens in LC 8.1 where the new networking library is in use. If you're using 8.0.2 the original libURL is in use and that doesn't have the same problems.

Re: "put/get URL" always returns empty in LC8

Posted: Mon Oct 17, 2016 10:29 am
by magixbox
In may case, the issue can be rather easily reproduce in 8.1.
Just click "test" button at the top to run the stack in iOS simulation, and all "put/get url" dead.
A relaunch of LC bring it back.

Re: "put/get URL" always returns empty in LC8

Posted: Fri Oct 21, 2016 4:57 am
by magixbox
Tested with 8.1.1 stable, the issue still there.
The workaround is to change "put url" to "put tsNetGetSync()" instead.

Re: "put/get URL" always returns empty in LC8

Posted: Fri Oct 21, 2016 11:13 am
by Klaus
Hi all,

no problem with "put url..." in the above mentioned stack form the LC lesson!
LC 8.1.1 stable on macOS 10.12


Best

Klaus

Re: "put/get URL" always returns empty in LC8

Posted: Mon Oct 24, 2016 7:00 pm
by sphere
Hi,

neither here. Put and Post Url works.
Having other strange issues on 8.1.1 and 9.0. And that's the: If the environment is "development" then.....
it's not working for my stack which started in lc8.1.x rc as i remember correct.
But in a new opened stack on lc8.1.1 and 9.0 it seems to work, just not in the stack i was working on.
This stack is working (after save for 7.0) in lc7.1.4 (but the player from 8.1.1 af course not)

So i'm falling back every time to lc7.1.4 as i'm keep getting bugs or strange behaviours every time on lc8 and higher.
Yes i could file bugs, but i have to make sure if and when this occurs exactly, and this is keeping me staggering going forward on the new lc's.

So for now i'll keep developing on lc7.1.4 and if i need something extra like the new player then i will open in LC8 or LC9, add it and export.

cheers!

Re: "put/get URL" always returns empty in LC8

Posted: Mon Nov 07, 2016 1:06 pm
by theotherbassist
This was a dumb mistake on my part. Deleted the proxy setting and now all is well. Beware that I think LC tries to auto-detect this.