Hi there! My organization has tasked me with generating reports about issues left out in previous sprints, as a way of evaluating our use of ZenHub. I’ve been looking at the ZenHub API to create custom query to get, for each sprint, the number of open issues for each assignees. My problem is, I’ve run into a wall at the moment, and authorization seems to be the issue. Here is a list of the problems I encounter:
- ZenHub’s explorer feature returns an error when fetching the schema (the option “Show Documentation Explorer” return a red rectangle that say “Error fetching schema”),
- ZenHub’s explorer feature returns the same errors everytime I try to enter a query. It is always the same error:
{
"errors": [
{
"message": "JSON.parse: unexpected character at line 1 column 1 of the JSON data",
"stack": ""
}
]
}
- I thought maybe the explorer feature might be experiencing troubles, so I tried a simple HTTP POST query using fetch() in JavaScript (Node.js). It returns a success, but the data I get back displays an error.
Do you have any idea as to why nothing seems to work? At this point I’m wondering if I even have sufficient authorization on my workspace/in my organization to access its schema. Do note that I’ve generated API key multiple times, and tried with several different ones. A developper colleague of mine also tried to do the same thing, and got similar errors (at least in the explorer feature).
Thanks for your input and your help!
Joël