Skip to content

HTTP API : local variable 'is_getting_disabled' referenced before assignment #1612

@Vince79170

Description

@Vince79170

Hi,
I want to change the critical value of swap_usage by the HTTP API with curl.

I can read the json https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json with curl.

But when i want to change the critical value, i have the error below:
{"code": 500, "error": "local variable 'is_getting_disabled' referenced before assignment"}

somes informations that i use
the temboard.json file contain:
{
"checks":
[
{"name":"swap_usage","critical":90}
]
}

I use the curl command below:
curl ^"https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json^" ^
-H ^"Cookie: temboard=xxxxxxxxxxxxxxxxxxx^" ^
-H ^"Accept: application/json^" ^
-H ^"Content-Type: application/json^" ^
-k ^
--data @temboard.json

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions