Geckoboard json error
Hi,
Trying to setup the Geckoboard stuff, followed the instructions on the help documents but all it ever gets back is "could not parse JSON".
I had added a GUID as an API key and i have made the URL like this:
http://support.MYWEBSITE.com/api/wallboard/73/progress/
Any way i can see what the JSON is thats being sent back or work out what is wrong?
James
· 166 |
|
Tuesday, September 25, 2012, 3:10:23 PM |
0
|
Which version of Gemini are you running(located at the bottom of the browser)? What happens when you type the URL into a browser? Does it work? |
||||
|
0
|
Running v5.0.1.3537 When you go to the url it says the following: This XML file does not appear to have any style information associated with it. The document tree is shown below. z:anyType xmlns:d1p1="http://www.w3.org/2001/XMLSchema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d1p1:string"/ (Note: i have removed the first "<" and last ">" on the line above so that it shows) |
||||
|
0
|
Note: its the same as i get if i hit: http://gemini.countersoft.com/api/wallboard/240/progress-pie |
||||
|
0
|
When we navigate to http://gemini.countersoft.com/api/wallboard/240/progress-pie it states you have the wrong API key within the XML. What do you get within the XML? |
||||
|
0
|
Appologies yes, that is what i get when i hit your site, on ours i simply get what i listed above: z:anyType xmlns:d1p1="http://www.w3.org/2001/XMLSchema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d1p1:string"/> it stops after that. |
||||
|
0
|
It might be that the card used doesn't return any data to Geckoboard. I suggest waiting for 5.1, which is due out early next week. It will give you better errors from Geckoboard so you can tell what the issue is. |
||||
|
0
|
Hi Mark, Its doing it with all cards. In the docs it just tells me to make up the API key (a GUID) its not something silly like it needs to be the API key from my user is it? |
||||
|
0
|
Did you add the api key in the web.config file? |
||||
|
0
|
I added a GUID that I got from http://www.guidgenerator.com/ into the we.config (as per this instruction: Please ensure that the Gemini web.config file has a API key specified. We recommend that you use a GUID as the API key). But i wanted to check it shouldn't of been the API Key from the user screen that i should of put in the web.config. |
||||
|
0
|
No, this is a global GUID. Is your site public (can we access it)? |
||||
|
0
|
It is private but web facing. I can send you a link, what is the best email address and what do you need (a user name with admin level?)? |
||||
|
0
|
Please upgrade to 5.1 first: http://www.geminiplatform.com/downloads/v5/countersoftgeminiv510.zip (run upgrade 5.1.sql). |
||||
|
0
|
Ok, so since the update i now get: "Wrong API key" when i hit the URL directly (https://support.MYSITE.com/api/wallboard/76/progress). The API key is set to a GUID in the web.config file and the same GUID is being used on the Gecko site. The Gecko site wont let me save the widget as its not valid and everytime i try in the Gemini system logs i get this: Sequence contains no elements System.Web.Http.WebHost at System.Web.Http.WebHost.HttpControllerHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) Any ideas? |
||||
|
0
|
Ok, seems like there are no results for the card / chart you are trying to setup. Please make sure that there are results (eg. resources) |
||||
|
0
|
yep, when i go to the card in gemini i get 50 - 60 items. Also if it has no results should the total not just be 0? |
||||
|
0
|
Yes, it should, we will look into this. |
||||
|
0
|
Ok, but this is not the problem as I have results from the card I am using. How do I get this working? Do you have one working internally? |
||||
|
0
|
Yes, we have ours working. Which widget are you trying? |
||||
|
0
|
Its any type of widget, i always get the same error. Even if i use the basic "text" option for example the opened-count one. I don’t understand how i can be doing it so wrong. |
||||
|
0
|
Can you please send an email to support@countersoft.com with your site url, card id and api key? |
||||
|
0
|
ANSWER
FYI: anyone having problems, this is fixed if you update to v5.1 |
||||
|