Discussion Forums  >  Self Hosted Control Panels

Replies: 7    Views: 101

Svartpaakvitt
Apple Fan
Profile
Posts: 63
Reg: Mar 03, 2012
Stavanger
7,130
03/20/12 11:22 AM (13 years ago)

Problem parsing the JSON result

I´ve got the following message when I try to download the source code: There was a problem parsing the JSON result? Any ideas?
 
Seans Corner
Aspiring developer
Profile
Posts: 84
Reg: Sep 28, 2011
Dallas
840
like
03/20/12 11:31 AM (13 years ago)
You sir might have the best most creative profile picture on here lol. My superman image comes in @ #2 and sorry dont know the answer to your question.
 
Svartpaakvitt
Apple Fan
Profile
Posts: 63
Reg: Mar 03, 2012
Stavanger
7,130
like
03/20/12 11:35 AM (13 years ago)
Thnx... :-)
 
Frno
Lost but trying
Profile
Posts: 68
Reg: Mar 11, 2012
location unknow...
3,230
like
03/20/12 03:10 PM (13 years ago)
So, I had this same error and the other solutions posted didn't resolve my issue. Being a programmer, I took the challenge to get my hands dirty. After some debugging, I found my issue. When my application package was built, I was getting a JSON Success Message, but it was prepended by an Array of API data, which was causing the object to not be valid. Ex: Array ( [apiKey] => XXXXXXXXXXXXXXXXXXXXX [apiSecret] => XXXXXXXXXXXXXXXXXXXXXXXXxXX [command] => packageProject [appGuid] => XXXXXXXXXXXXXXXXXXXXXXXX [projectName] => MyProjName [appName] => MyAppName [iconURL] => MyIconURL.jpg [platform] => android [version] => 2.0 ) {"result":{"status":"success", "message":"The project was packaged successfully."}} Only the last part should have been returned for me. My solution: Clear out the variable before the response is returned in the 'bt_appDownload_AJAX.php' file (Full Location: bt-server\bt_v15\bt_app\bt_appDownload_AJAX.php). I inserted 'unset($jsonResult);' somewhere near line 852 and voila! My install is now working properly.
 
mercwonder
Aspiring developer
Profile
Posts: 41
Reg: Jan 21, 2012
Sacramento
2,910
like
03/21/12 08:13 PM (13 years ago)
I've tried multiple fixes and still the same result... I keep getting a parsing error with the JSON file... it's interesting that my API count is going up since i have yet to download any of my apps from my personal server. I would be willing to give out credentials if someone could help me with this. Love BT and would love it to work!
 
Svartpaakvitt
Apple Fan
Profile
Posts: 63
Reg: Mar 03, 2012
Stavanger
7,130
like
03/22/12 12:09 AM (13 years ago)
Same with me. Still looking for a solution. -Alf-
 
mercwonder
Aspiring developer
Profile
Posts: 41
Reg: Jan 21, 2012
Sacramento
2,910
like
03/23/12 12:49 PM (13 years ago)
Someone found the issue and fixed it on my end... it has to deal with uploading the icons in .png format... it should be uploaded in .jpg format. try uploading your icon as a jpg and see if that works. Be sure to actually convert the .png to jpg... not name only but the actual file.
 
Svartpaakvitt
Apple Fan
Profile
Posts: 63
Reg: Mar 03, 2012
Stavanger
7,130
like
03/23/12 12:58 PM (13 years ago)
Yeah, I found it myself, I just laughed after the solution. It was an easy solution, but made a lot of difficulties for is... Thnx anyway... :-) -Alf-
 

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.