get URL no longer works in iOS app

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rcmills
Posts: 68
Joined: Wed Nov 21, 2018 8:27 pm

get URL no longer works in iOS app

Post by rcmills » Tue Nov 12, 2024 9:44 pm

I just updated to LC 10.0.1 (rc 1), and the previously working URL downloads have stopped functioning in my iOS apps. I scoured the docs and the forum, but cannot find a fix for the problem.

I have always included the internet and the SSL libraries in my build. Here is sample code:

Code: Select all

      get URL(udFileName)
      if it is not empty and not (it contains "error")
      then
         put it into tData 
      else
         put getDLerror(it) into dlError
         answer dlError & cr & "Notes data" && "not loaded." as sheet
      end if
Even though using the udFileName in a browser (both desktop and iPhone) gets the proper data, I get this from my app


An error occurred:
tsneterr: HTTP response code 500 returned from server.



Any ideas what may have happened? The code worked fine before.

Thanks!

rcmills
Posts: 68
Joined: Wed Nov 21, 2018 8:27 pm

Re: get URL no longer works in iOS app

Post by rcmills » Sat Nov 16, 2024 10:46 pm

I have re-compiled the iOS app using an older (9.6.10) LC version, and the get URL functions perfectly on the iPhone in this build. There must be some incompatibility arising in the LC 10 compile. Am I right?

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: get URL no longer works in iOS app

Post by andyh1234 » Mon Nov 18, 2024 11:14 pm

I'm using Livecode 10.0.1 rc2 and put URL is working for me, I've not tried get but it might be worth giving put a go.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: get URL no longer works in iOS app

Post by FourthWorld » Tue Nov 19, 2024 1:59 am

500-series errors are server errors.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

rcmills
Posts: 68
Joined: Wed Nov 21, 2018 8:27 pm

Re: get URL no longer works in iOS app

Post by rcmills » Tue Nov 19, 2024 4:21 pm

Thanks for the replies

I have used both put and get in my attempts with 10.0.1

And, yes the 500 error means a server error, but the re-compile with 9.6.10 works just fine.

I am baffled.

rcmills
Posts: 68
Joined: Wed Nov 21, 2018 8:27 pm

Re: get URL no longer works in iOS app

Post by rcmills » Tue Nov 19, 2024 10:00 pm

BTW, "load URL" works fine using 10.0.1, but I'm not as good at handling the asynchronous return of the data,
and prefer to use get or put

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: get URL no longer works in iOS app

Post by FourthWorld » Wed Nov 20, 2024 12:16 am

rcmills wrote:
Tue Nov 19, 2024 4:21 pm
Thanks for the replies

I have used both put and get in my attempts with 10.0.1

And, yes the 500 error means a server error, but the re-compile with 9.6.10 works just fine.
Any clues in the server logs?

Since it works in an earlier LC version, might be worth filing a bug report.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

rcmills
Posts: 68
Joined: Wed Nov 21, 2018 8:27 pm

Re: get URL no longer works in iOS app

Post by rcmills » Thu Nov 21, 2024 9:46 pm

Thanks, FourthWorld.

I am not well versed in the server side of things, and don't know exactly how to search the server logs.

I did search LC Quality Control Center for possible previous bug reports in this issue, but failed to find anything on it. I'm not familiar enough with the protocol in filing bug reports. Any help files to learn this?

Post Reply