Discussion Forums  >  Self Hosted Control Panels

Replies: 10    Views: 103

TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
07/29/13 05:52 PM (12 years ago)

Source Code Download

So I have an app that I am trying to download the source code for Xcode. When I go to click on prepare package for download I get a error message that says "buzztouch API return invalid JSON" Can someone explain to me what that means and how would I go about fixing it so I can download my source code?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
07/29/13 05:55 PM (12 years ago)
It sounds like your json data isn't valid. Did you mess around with the "advanced, manually edit JSON" option in the theme?
 
TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
like
07/29/13 06:02 PM (12 years ago)
I didn't change anything in the theme. When I go to my server settings I noticed under the API key and secret there isnt anything entered into the API Key, my guess is that is the problem? But how would I go about making the right changes?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
07/29/13 06:07 PM (12 years ago)
Try this.... Open your config.txt file and copy everything. Then go to jsonlint.com. Paste everything from your config.txt file into the box, then click validate. Does it say "valid"?
 
TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
like
07/29/13 06:15 PM (12 years ago)
it says valid json
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
07/29/13 06:15 PM (12 years ago)
Wait, sorry, didn't see your last response. If you go to the main buzztouch website and click on your profile, then on to "self hosted software" do you see your API info there?
 
TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
like
07/29/13 06:29 PM (12 years ago)
Server API Keys I have my BT Server with 0 #Req. When I click on my BT Server I pull up all my API key details. API Calls is 0, Last request is never, API key status is active. When I open up my config.php in filezilla I noticed there are these fields that I believe should be changed, but am not certain? /* buzztouch.com User Email Address, Password */ define("APP_BT_ACCOUNT_USEREMAIL", "YOUR_BUZZTOUCH_ACCOUNT_LOGIN"); define("APP_BT_ACCOUNT_USERPASS", "YOUR_BUZZTOUCH_ACCOUNT_PASSWORD"); /* buzztouch.com API URL, API Key, API Secret. Log in at buzztouch.com then see Account > Self Hosted Servers */ define("APP_BT_SERVER_API_URL", "YOUR_BUZZTOUCH_API_KEY_URL"); define("APP_BT_SERVER_API_KEY", "YOUR_BUZZTOUCH_API_KEY"); define("APP_BT_SERVER_API_KEY_SECRET", "YOUR_BUZZTOUCH_API_SECRET"); If so what do I need to change them all too?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
07/29/13 06:34 PM (12 years ago)
It doesn't sound like you finished installing your BT-server. Did you make it to the last step in this document? https://www.buzztouch.com/files/howtos/BuzzTouchServerTutorial.pdf I did this so long ago I don't remember the details, but that should help.
 
TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
like
07/29/13 06:38 PM (12 years ago)
I cant fully remember but I believe I did. However when I go to server settings it says "Settings are Read Only on this screen" "All of the values displayed on this screen are configured in the config.php file in the root of this software directory structure. This means that if you need to chang any values below, you'll need to use a text editor to make the changes, then re-upload the config.php file to your remote host"
 
TatorTot
Aspiring developer
Profile
Posts: 161
Reg: Jun 25, 2013
Iowa
5,410
like
07/29/13 06:43 PM (12 years ago)
Well turns out that was the problem all along mutzy, I must have forgotten that last step! Went and changed everything in the config.php to what it should be and wam bam works now! Thanks a bunch, it's embarrassing being a new guy at all of this
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
07/29/13 08:09 PM (12 years ago)
Tator We have all been "the new guy." Thats what makes this community so great at helping each other.
 

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.