Steps to reproduce:
We're trying to get summaries using a POST of a JSON body as instructed in the documentation:
https://help.kagi.com/kagi/api/summarizer.html (under "POST request with JSON body, song lyrics, Cecil engine").
However, when we execute the example with our token, we get:
curl -X "POST" "https://kagi.com/api/v0/summarize" \
-H 'Authorization: Bot <token>' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"url": "https://genius.com/Brothertiger-mainsail-lyrics",
"engine": "cecil"
}'
The response returns:
{
"meta": {
"id": "26a73ab4-e15e-413f-a585-6bfd0c7f3619",
"node": "europe-west4",
"ms": 6
},
"data": {
"output": null,
"tokens": 0
},
"error": [
{
"code": 200,
"msg": "Sorry, a problem occurred while processing your request. Please try again later.",
"ref": null
}
]
}
It's a bit weird that we get code "200" along with an error message (as 200 usually means that everything went fine).
Also, the error message isn't really helpful and doesn't give us any clue on what the problem might be.
Expected behavior:
We would expect a summary to be returned without any errors (especially since this is an example from the documentation).
In the case of an error, a message indicating what the problem and solution are would be very helpful.
Debug info:
cURL running on macOS and / or Linux
Node: europe-west4