Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 11    Views: 128

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
06/24/13 02:19 PM (10 years ago)

Config file error

Hi, I have an app online, it has auto refresh for the config file. User after a few uses are getting this error: The configuration data for this application is invalid Does this mean that sometimes the all isn't able to communicate with my self hosted? Cheers Miguel
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/24/13 02:52 PM (10 years ago)
Hey Miguel, Has anything changed in the app since the last time the refresh worked? Sometimes if it has, that's the culprit. Since this is a live app, try going into your control panel, get the live version of your config file, and run it through JSONlint.com, just to make sure it checks out. Mark
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
06/24/13 02:53 PM (10 years ago)
Hey @MadRod, I'm not sure about the solution, but is the config file with "live" configured with the App? I'm just throwing it out there. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/24/13 03:20 PM (10 years ago)
Do you have any custom plugins, or are you using manually entered json anywhere (such as via dataURL for a screen, or the JSON snippet keeper)?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/25/13 01:31 AM (10 years ago)
Hi Miguel If the app cannot communicate to the host, it doesn't throw that error, it just runs with the last config.txt it has cached. The error you have suggests that it did manage to pull in a config.txt, but didn't like it. As everyone else before me said, very probably a json problem. Could be an invalid image name, an space where it shouldn't be or something like that? Alan
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/25/13 02:57 AM (10 years ago)
Hey, thanks guys. Nothing's changed, It's from my last app, children's stories. I run the config file text on the json validation, and it gets no errors. The app uses the loading a config file depending on the device settings, so I got 3 config files out there. All get no errors. No custom plugins and no manual json. The weird thing is that it sometimes loads ok, sometimes it doesnt. Just strange. Can I give any of you guys a ipad code to test it out on your end? Thanks Miguel
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/25/13 03:43 AM (10 years ago)
I have an iPhone, but not an iPad I'm afraid, otherwise happy to help. Cheers, Alan
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/25/13 03:49 AM (10 years ago)
thanks, but its a ipad only app :( Cheers. Miguel
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/25/13 09:52 AM (10 years ago)
I could test it @MadRod but is it for iOS 6? Is it using the localization? Could that be the issue?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/25/13 10:03 AM (10 years ago)
it is using localization and it is for IOS 6. It could be, just strange. I have no trouble with it.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/25/13 02:42 PM (10 years ago)
wish i could help. i can't upgrade to ios6 yet on my ipad. maybe i can try to reproduce it in the simulator.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/27/13 05:15 PM (10 years ago)
Same here - I was all set to offer a test, but my iPad is 1st-gen.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.