Page 1 of 1

get URL no longer works in iOS app

Posted: Tue Nov 12, 2024 9:44 pm
by rcmills
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!

Re: get URL no longer works in iOS app

Posted: Sat Nov 16, 2024 10:46 pm
by rcmills
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?

Re: get URL no longer works in iOS app

Posted: Mon Nov 18, 2024 11:14 pm
by andyh1234
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.

Re: get URL no longer works in iOS app

Posted: Tue Nov 19, 2024 1:59 am
by FourthWorld
500-series errors are server errors.

Re: get URL no longer works in iOS app

Posted: Tue Nov 19, 2024 4:21 pm
by rcmills
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.

Re: get URL no longer works in iOS app

Posted: Tue Nov 19, 2024 10:00 pm
by rcmills
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

Re: get URL no longer works in iOS app

Posted: Wed Nov 20, 2024 12:16 am
by FourthWorld
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.

Re: get URL no longer works in iOS app

Posted: Thu Nov 21, 2024 9:46 pm
by rcmills
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?