Discussion Forums  >  Uncategorized

Replies: 16    Views: 728

Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
06/08/11 08:14 AM (14 years ago)

there was a problem parsing some configuration data. Please make sure it is well formed (iOS) b143

I keep getting this error. How can it be fixed?
 
gotfox
buzztouch Evangelist
Profile
Posts: 146
Reg: Feb 05, 2011
Las Vegas
8,460
like
06/08/11 09:23 AM (14 years ago)
Need more 411. What type of screen are you loading when you get the error? Are you serving your own information for that screen?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/08/11 09:26 AM (14 years ago)
You could also use the JSON validator here: http://jsonlint.com/ a) Core Settings > Show Apps Configuration Data b) View Source in browser, copy to clipboard c) Paste in the JSON validator. It won't fix your app but will show you where the trouble is. Report what errors it shows you in the config data.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
06/08/11 10:09 AM (14 years ago)
This is the Error Parse error on line 55: ...screen_customHTML, nbsp;</p> <p> -----------------------^ Expecting 'STRING'
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/08/11 10:15 AM (14 years ago)
Good find. I can say 100% it's related to a Custom HTML / TEXT screen in your app. We've been struggling with the HTML editor recently. See the last comment here, posted :30 minutes ago: http://www.buzztouch.com/forum/thread.php?tid=D04777F418BA31DB5404E62 Then..this is the tricky part. Depending on how many HTML / TEXT screens you've created. You'll need to either a), visit them and press 'Save' again. Or b), re-create them if they did not save the HTML you previosly entered. If you created lots of these, it could get tedious. Be sure to REFRESH your browser (clear it's cache) when you begin using the editor again, it was updated this morning and may be 'cached' in your browser. Hope this helps.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
06/09/11 11:04 AM (14 years ago)
I tried the fix but i still am getting the error. :-(
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/09/11 11:08 AM (14 years ago)
If it's your Sutter Ortho app, I just looked at the JSON and it is valid. Cool, this means you fixed something ;-) I'll be the simulator or the device is using a previously downloaded (and bogus) configuration file. The file with the errors. Try removing the app from the sim / device and re-installing...see what happens. I downloaded the project and compiled it fine on this end so it's for sure the app trying to read the previously downloaded configuration data. Or, lastly, maybe I'm looking at the wrong app? Funny.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
06/09/11 11:09 AM (14 years ago)
I even deleted my html screen same error!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/09/11 11:10 AM (14 years ago)
Did you see the previous post...looks like we were typing at the same time.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
06/09/11 11:10 AM (14 years ago)
It the Sutter Ortho app
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/09/11 11:23 AM (14 years ago)
Found it! The Twitter, Facebook, and Email screens had a carriage return before the URL you entered. The control panel for these screens should not be allowing carriage returns but didn't seem to remove them? I found these by looking at the output console when running Xcode. Look at the output console, it always helps. a) Core Settings > Show Configuration Data > Open this, view source b) Copy the contents of this config data to your BT_config.txt file in Xcode. Overwrite the old BT_config.txt data (it's not good!) b) Compile, refresh.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
06/09/11 11:57 AM (14 years ago)
Thank you so much!
 
pugfugly
Aspiring developer
Profile
Posts: 7
Reg: Oct 28, 2011
Seattle
70
like
12/08/11 02:13 PM (14 years ago)
I don't get this error when I use the iOS 4.0 iPhone simulator, but any higher iOS version returns this error message. My JSON is valid according to jsonlint.com AND based on the fact it functions as expected when using the 4.0 simulator.
 
pugfugly
Aspiring developer
Profile
Posts: 7
Reg: Oct 28, 2011
Seattle
70
like
12/08/11 02:34 PM (14 years ago)
Let me add some more information. I have a menulist that populates from a PHP dataURL on my server. This works exactly as desired when simulating with iPhone iOS 4.0, but fails with any higher version. My server returns something along the lines of this: (multiple childitems removed, and line breaks added by me for clarity. There are no linebreaks or C/Rs in the data returned from the server) {childItems:[ { itemId:WallBtnID1, itemType:BT_menuItem, loadScreenObject: { itemType:BT_screen_webView, itemId:WallPosts1, itemNickname:ROOM ONE, navBarTitleText:ROOME ONE, dataURL:http://myserver.com/backend/WallFunctions.php?action=getPostsByWallID&wallid=1 }, titleText:ROOM ONE, descriptionText:Description of ROOM ONE goes here., } ] } There error messages displayed in the debugger are: 2011-12-08 13:14:31.946 dirtywalls[1795:207] BT_screen_menuList: ERROR parsing JSON: ( Error Domain=org.brautaset.JSON.ErrorDomain Code=5 Unescaped control character '0xa' UserInfo=0x653a330 {NSLocalizedDescription=Unescaped control character '0xa'}, Error Domain=org.brautaset.JSON.ErrorDomain Code=3 Object value expected for key: descriptionText UserInfo=0x653a430 {NSUnderlyingError=0x653a390 Unescaped control character '0xa', NSLocalizedDescription=Object value expected for key: descriptionText}, Error Domain=org.brautaset.JSON.ErrorDomain Code=3 Expected value while parsing array UserInfo=0x653a480 {NSUnderlyingError=0x653a410 Object value expected for key: descriptionText, NSLocalizedDescription=Expected value while parsing array}, Error Domain=org.brautaset.JSON.ErrorDomain Code=3 Object value expected for key: childItems UserInfo=0x653a550 {NSUnderlyingError=0x653a510 Expected value while parsing array, NSLocalizedDescription=Object value expected for key: childItems} edit: well, the quotation marks are getting stripped, but they are there.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/09/11 12:00 AM (14 years ago)
So, sounds like some ugly characters somewhere in the JSON data. iOS handles these strangly sometimes. Good that you validated it with the online tool. Maybe post the URL so we can get a look? The URL that the menu-list is pulling from. Or, hmm...is there a comma after the description text for each item? Looks like it form what you posted. The last property in each item should not have a comma. Hmm..the JSON validator should have caught this so maybe not.
 
pugfugly
Aspiring developer
Profile
Posts: 7
Reg: Oct 28, 2011
Seattle
70
like
12/09/11 09:18 AM (14 years ago)
The trailing comma is my error pasting it in the message. I removed the next line, which was just a iconURL to my server. I can't see any odd characters in the response data, but I'll try some subsets or test data and see if I can track it down. Don't know why there's a difference b/w 4.x versions. Thanks
 
MDG2
Apple Fan
Profile
Posts: 102
Reg: May 08, 2012
Princeton, New ...
5,020
like
06/11/12 07:49 AM (13 years ago)
I'm getting the same error. Pasted the Config file txt into JSONLint.com and it said everything was valid.
 

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.