yourtownapps
Aspiring developer
Profile
Posts: 63
Reg: Mar 08, 2012
Collingswood, N...
6,130
03/05/14 08:06 PM (10 years ago)

problem reading some required data

I am pretty new at Buzztouch. I thought I had the hang of putting together apps when I received the same message on two apps I am assembling: "There was a problem reading some required data." The log of one such error is as follows: 2014-03-05 19:52:22.633 golden4[21153:70b] BT_device: INIT 2014-03-05 19:52:22.635 golden4[21153:70b] BT_device: Unique UUID does not exist, creating: D59A67E8-E02D-4C5A-A121-2F3ADF1A2693 2014-03-05 19:52:22.637 golden4[21153:70b] BT_device: This device is NOT an iPad. 2014-03-05 19:52:22.638 golden4[21153:70b] BT_device: This device can make phone calls 2014-03-05 19:52:22.647 golden4[21153:70b] BT_device: This device can send emails 2014-03-05 19:52:22.648 golden4[21153:70b] BT_device: This device cannot send SMS (text) messages 2014-03-05 19:52:22.649 golden4[21153:70b] BT_device: This device can report it's location 2014-03-05 19:52:22.650 golden4[21153:70b] BT_device: This device cannot take pictures or videos 2014-03-05 19:52:22.651 golden4[21153:70b] BT_device: Listing custom fonts (UIAppFonts) listed in app's .plist... 2014-03-05 19:52:22.653 golden4[21153:70b] BT_user: INIT 2014-03-05 19:52:22.655 golden4[21153:70b] BT_user: User is not logged in 2014-03-05 19:52:22.656 golden4[21153:70b] BT_application: INIT 2014-03-05 19:52:22.662 golden4[21153:70b] BT_loadConfigDataViewController: INIT 2014-03-05 19:52:22.671 golden4[21153:70b] BT_loadConfigDataViewController: viewDidLoad (super) 2014-03-05 19:52:22.672 golden4[21153:70b] BT_loadConfigDataViewController: viewDidLoad 2014-03-05 19:52:22.677 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.678 golden4[21153:70b] BT_loadConfigDataViewController: viewWillAppear (super) 2014-03-05 19:52:22.679 golden4[21153:70b] BT_loadConfigDataViewController: configureNavBar (super) for screen with itemId: loadConfigDataScreen 2014-03-05 19:52:22.682 golden4[21153:70b] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "(null)" does not use a navBarBackgroundColor 2014-03-05 19:52:22.683 golden4[21153:70b] BT_loadConfigDataViewController: configureBackground (super) for screen with itemId loadConfigDataScreen: 2014-03-05 19:52:22.683 golden4[21153:70b] BT_loadConfigDataViewController: viewWillAppear 2014-03-05 19:52:22.684 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.685 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.692 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.693 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.694 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.695 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.696 golden4[21153:70b] golden4_appDelegate: applicationDidBecomeActive 2014-03-05 19:52:22.698 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:22.742 golden4[21153:70b] BT_loadConfigDataViewController: viewDidAppear 2014-03-05 19:52:22.748 golden4[21153:70b] golden4_appDelegate: networkTypeChanged. rootDevice is connected to the network: WiFi 2014-03-05 19:52:24.244 golden4[21153:70b] BT_loadConfigDataViewController: loadAppData 2014-03-05 19:52:24.244 golden4[21153:70b] BT_loadConfigDataViewController: Will use the default JSON configuration file "BT_config.txt" if a newer version is not cached on the device. 2014-03-05 19:52:24.246 golden4[21153:70b] BT_fileManager: File does not exist in cached directory: "cachedAppConfig.txt" 2014-03-05 19:52:24.247 golden4[21153:70b] BT_fileManager: File does exist in Xcode bundle: "BT_config.txt" 2014-03-05 19:52:24.247 golden4[21153:70b] BT_loadConfigDataViewController: Parsing JSON data included in the project bundle: "BT_config.txt" 2014-03-05 19:52:24.248 golden4[21153:70b] BT_fileManager: readTextFileFromBundleWithEncoding: "BT_config.txt" encoding: -1 2014-03-05 19:52:24.249 golden4[21153:70b] BT_application: validateApplicationData 2014-03-05 19:52:24.252 golden4[21153:70b] BT_application: The application data appears to be valid. 2014-03-05 19:52:24.252 golden4[21153:70b] BT_application: parseJSONData: parsing application data 2014-03-05 19:52:24.254 golden4[21153:70b] BT_application: parsing themes, count: 1 2014-03-05 19:52:24.255 golden4[21153:70b] BT_application: parsing tabs, count: 0 2014-03-05 19:52:24.255 golden4[21153:70b] BT_application: parsing menus, count: 0 2014-03-05 19:52:24.256 golden4[21153:70b] BT_application: parsing screens, count: 28 2014-03-05 19:52:24.257 golden4[21153:70b] BT_loadConfigDataViewController: downloadAppData 2014-03-05 19:52:24.257 golden4[21153:70b] BT_strings: mergeBTVariablesInString (before): https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JAF3417014B49B591751ADE22&apiKey=162DB71914DD8B617DE4C27&apiSecret=3084B43A41D49F7100E0509 2014-03-05 19:52:24.258 golden4[21153:70b] BT_strings: mergeBTVariablesInString (after merge): https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JAF3417014B49B591751ADE22&apiKey=162DB71914DD8B617DE4C27&apiSecret=3084B43A41D49F7100E0509 2014-03-05 19:52:24.259 golden4[21153:70b] BT_downloader: INIT 2014-03-05 19:52:24.259 golden4[21153:70b] BT_downloader: downloadFile: https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JAF3417014B49B591751ADE22&apiKey=162DB71914DD8B617DE4C27&apiSecret=3084B43A41D49F7100E0509 2014-03-05 19:52:24.259 golden4[21153:70b] BT_loadConfigDataViewController: downloadFileStarted: starting download... 2014-03-05 19:52:24.988 golden4[21153:70b] BT_fileManager: saveTextFileToCacheWithEncoding: "cachedAppConfig.txt" encodingFlag: -1 2014-03-05 19:52:24.993 golden4[21153:70b] BT_loadConfigDataViewController: downloadFileCompleted 2014-03-05 19:52:24.994 golden4[21153:70b] BT_fileManager: saveTextFileToCacheWithEncoding: "cachedAppConfig.txt" encodingFlag: -1 2014-03-05 19:52:24.995 golden4[21153:70b] BT_application: validateApplicationData 2014-03-05 19:52:24.997 golden4[21153:70b] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=8 "Illegal escape sequence '0x27'" UserInfo=0xd4d8f90 {NSLocalizedDescription=Illegal escape sequence '0x27'}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: itemNickname" UserInfo=0xd4d9040 {NSUnderlyingError=0xd4d8fd0 "Illegal escape sequence '0x27'", NSLocalizedDescription=Object value expected for key: itemNickname}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xd4d9080 {NSUnderlyingError=0xd4d9060 "Object value expected for key: itemNickname", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_screens" UserInfo=0xd4d90c0 {NSUnderlyingError=0xd4d90a0 "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=0xd4d9140 {NSUnderlyingError=0xd4d9120 "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=0xd4d91e0 {NSUnderlyingError=0xd4d9160 "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=0xd4d9220 {NSUnderlyingError=0xd4d9200 "Object value expected for key: BT_items", NSLocalizedDescription=Object value expected for key: BT_appConfig}" ) 2014-03-05 19:52:24.998 golden4[21153:70b] BT_application: validateApplicationData: ERROR: There was a problem parsing some JSON data. Please make sure that it is well-formed. 2014-03-05 19:52:24.999 golden4[21153:70b] BT_fileManager: deleteFile: "cachedAppConfig.txt" 2014-03-05 19:52:25.000 golden4[21153:70b] BT_loadConfigDataViewController: error parsing downloaded app config data 2014-03-05 19:52:25.001 golden4[21153:70b] BT_loadConfigDataViewController: showAlert 2014-03-05 19:52:25.005 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.006 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.007 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.007 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.007 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.007 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.008 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.008 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.008 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.008 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.009 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.009 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.009 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.009 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.010 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.010 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.011 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.011 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.012 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.012 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.013 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow 2014-03-05 19:52:25.013 golden4[21153:70b] golden4_appDelegate: supportedInterfaceOrientationsForWindow I am not practiced in reading these logs. Any suggestions as to where I should look for the error(s) and how to fix the error(s)? Thanks.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/05/14 08:39 PM (10 years ago)
I was able to pull your config file from the info above, and ran it through jsonlint.com to make sure the JSON was valid. There are several errors, and here's an example: "itemNickname": "Dagotto\'s Panini Bisto", This basically means that you have an illegal character in this string, at least from a JSON perspective. It's possible you used a ` instead of a ', which should work. Check that entry out, correct if possible, and you should be good! There are quite a few entries where this is the case, so you'll need to go through them all. It's possible that the screen nickname doesn't support apostrophes, so you might have to just go with "Dagattos Panini Bisto" as a workaround. That doesn't affect what users see...that's the internal name for the screen. Hope this helps! Mark
 
yourtownapps
Aspiring developer
Profile
Posts: 63
Reg: Mar 08, 2012
Collingswood, N...
6,130
like
03/05/14 08:59 PM (10 years ago)
Thanks, Mark, for your help. I will try to keep better track of my typing from now on.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/05/14 09:50 PM (10 years ago)
Let us know how it works out, and Welcome to Buzztouch!
 

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.