mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
124 stars 48 forks source link

Wrong api to push metric points #125

Closed truong-hua closed 3 years ago

truong-hua commented 3 years ago

According to https://docs.cachethq.io/reference#post-metric-points, the API request should sent data in JSON raw body but in this project, the metric points are sent through GET params. So it causes the error below:

{
    "errors": [
        {
            "id": "3b4fee60-7148-4420-a16a-1159b0e1637c",
            "status": 400,
            "title": "Bad Request",
            "detail": "The request cannot be fulfilled due to bad syntax."
        }
    ]
}

Cachet version:

{
    "meta": {
        "on_latest": true,
        "latest": {
            "tag_name": "v2.3.18",
            "prelease": false,
            "draft": false
        }
    },
    "data": "2.3.10"
}
truong-hua commented 3 years ago

This is a wrong report, the issue is not from this repo