"put/get URL" always returns empty in LC8
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
"put/get URL" always returns empty in LC8
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.
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
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.
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: "put/get URL" always returns empty in LC8
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
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: "put/get URL" always returns empty in LC8
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.
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: "put/get URL" always returns empty in LC8
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
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
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
HyperActive Software | http://www.hyperactivesw.com
Re: "put/get URL" always returns empty in LC8
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.
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
Tested with 8.1.1 stable, the issue still there.
The workaround is to change "put url" to "put tsNetGetSync()" instead.
The workaround is to change "put url" to "put tsNetGetSync()" instead.
Re: "put/get URL" always returns empty in LC8
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
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
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!
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!
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: "put/get URL" always returns empty in LC8
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.