"put/get URL" always returns empty in LC8

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

"put/get URL" always returns empty in LC8

Post by theotherbassist » Sun Aug 21, 2016 10:49 am

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Sun Aug 21, 2016 6:24 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

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

Post by theotherbassist » Sun Aug 21, 2016 7:00 pm

Hmmm. Well I'm always returning the result, it's just always empty whether I have www access or not...

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Sun Aug 21, 2016 7:07 pm

Okay, then your issue is different. I assume the URL works in a browser app?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

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

Post by theotherbassist » Tue Aug 23, 2016 8:14 pm

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.

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

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

Post by theotherbassist » Tue Aug 23, 2016 8:15 pm

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

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

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

Post by KimD » Tue Aug 23, 2016 8:53 pm

POST to URL is working for me (LC8.0.2). I haven't tried PUT or GET.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Tue Aug 23, 2016 9:37 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

magixbox
Posts: 11
Joined: Sat Feb 22, 2014 8:53 am

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

Post by magixbox » Mon Oct 17, 2016 10:29 am

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.

magixbox
Posts: 11
Joined: Sat Feb 22, 2014 8:53 am

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

Post by magixbox » Fri Oct 21, 2016 4:57 am

Tested with 8.1.1 stable, the issue still there.
The workaround is to change "put url" to "put tsNetGetSync()" instead.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Fri Oct 21, 2016 11:13 am

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

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

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

Post by sphere » Mon Oct 24, 2016 7:00 pm

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!

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

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

Post by theotherbassist » Mon Nov 07, 2016 1:06 pm

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.

Post Reply