Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 6    Views: 147

Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
08/06/12 08:55 PM (13 years ago)

Error: Configuration data is invalid

I was working along on quizzes, and I getting the error on my iPhone (testing device): "The configuration data for this application is invalid". So far I have tried 1) to copy the latest config file into Xcode, 2) checking to see if the JSON is valid (it is), 3) searching my quiz questions for parentheses that could be confusing the JSON file, and 4) turned everything off and reopened Xcode. No luck so far. What ideas do you have? What else can I try?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/06/12 11:07 PM (13 years ago)
* Delete the app from your phone and reinstall * Run the app in Xcode and see what shows up in the debug console when the error comes up Mark
 
Known
Apple Fan
Profile
Posts: 83
Reg: Jan 07, 2012
Suttons Bay, Mi...
830
like
08/06/12 11:26 PM (13 years ago)
Look for question marks, parenthesis (as you have) and any other type of punctuation. Also, make sure that your quotes aren't smart quotes. That stumped me at first as well. One thing I did until I figured out the punctuation marks was to feed it in one at a time until the problem presented itself. Cheryl
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/07/12 12:09 AM (13 years ago)
Watching the debug console will show you when a special character issue comes up! Mark
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/07/12 06:45 AM (13 years ago)
Thanks for the responses overnight, Cheryl and Mark! But we can use question marks in quizzes, right? I saw one post where someone had this problem when they inadvertently had an extra space before the question mark. I think the problem definitely is a problem with punctuation in the quiz. Here are my errors: "Error Domain=org.brautaset.JSON.ErrorDomain Code=5 \"Unescaped control character '0xa'\" UserInfo=0x4616e0 {NSLocalizedDescription=Unescaped control character '0xa'}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object value expected for key: questionText\" UserInfo=0x4617b0 {NSUnderlyingError=0x461720 \"Unescaped control character '0xa'\", NSLocalizedDescription=Object value expected for key: questionText}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Expected value while parsing array\" UserInfo=0x4617f0 {NSUnderlyingError=0x461790 \"Object value expected for key: questionText\", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object value expected for key: childItems\" UserInfo=0x4618c0 {NSUnderlyingError=0x461880 \"Expected value while parsing array\", NSLocalizedDescription=Object value expected for key: childItems}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Expected value while parsing array\" UserInfo=0x461910 {NSUnderlyingError=0x4618a0 \"Object value expected for key: childItems\", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object value expected for key: BT_screens\" UserInfo=0x461a00 {NSUnderlyingError=0x4619a0 \"Expected value while parsing array\", NSLocalizedDescription=Object value expected for key: BT_screens}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Expected value while parsing array\" UserInfo=0x461a40 {NSUnderlyingError=0x4619e0 \"Object value expected for key: BT_screens\", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object value expected for key: BT_items\" UserInfo=0x461b10 {NSUnderlyingError=0x461ad0 \"Expected value while parsing array\", NSLocalizedDescription=Object value expected for key: BT_items}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object value expected for key: BT_appConfig\" UserInfo=0x461bd0 {NSUnderlyingError=0x461af0 \"Object value expected for key: BT_items\", NSLocalizedDescription=Object value expected for key: BT_appConfig}" )
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/07/12 06:57 AM (13 years ago)
I found it. The problem was my use of apostrophes. I took them out, and now it works. There is a workaround for this--I remember this from a couple years ago. I will see if I can find it and post it.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
08/14/12 02:20 AM (13 years ago)
For future reference remember that the JSON validator tool will always pin point those thypes of errors in mili-seconds: http://jsonlint.com Glad you found the error though :) !
 

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.