Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
UrlLoader returns error — Gideros Forum

UrlLoader returns error

amaximovamaximov Member
edited April 2013 in General questions
Hi, I am making an app that needs to retrieve small update files from our server. Our website is intoitgames.com. We are trying to use the following code in our app to retrieve a simple json file.
 
local loader = UrlLoader.new("<a href="http://developers.intoitgames.com/get_config.php?app=super-stickman"" rel="nofollow">http://developers.intoitgames.com/get_config.php?app=super-stickman"</a>, UrlLoader.GET)	
 
local function onComplete(event)
	print("Complete")
	loader = nil
end
 
local function onError(event)
	print("Error")
	loader = nil
end
 
loader:addEventListener(Event.COMPLETE, onComplete)
loader:addEventListener(Event.ERROR, onError)
We always get an Error in Gideros player even though the url "http://developers.intoitgames.com/get_config.php?app=super-stickman" loads up just fine in the web browser.

We are making the move from Corona to Gideros, and this url does return an intact, valid json string with Corona. No reason why this doesn't work with Gideros. Sites like Google, and example.com do work. In addition, we cannot access our entire domain. Using "http://intoitgames.com" as the url parameter for url loader does not work either. Tried restarting the computer and clearing rotten dns cache using "ipconfig /flushdns"

Last note: It worked 20 minutes ago, but now it doesn't. I DID update a couple files on the server via ftp but that should not make any difference. Perhaps I need to clear something within internal data files of Gideros?

Edit: Had 2 friends with different internet providers try. Getting the same error. Still working in Corona. Is there a way I can get more error info as the event table is rather simple. Ex: Can I get the type of error? (Ex:404, etc.)

Comments

Sign In or Register to comment.