#1 FEDMSG_COUNT script returns "error": "not_found"
Opened 7 years ago by germano. Modified 7 years ago

In document
https://pagure.io/fedora-letters/blob/master/f/fedora_letterhead.ott
there is written that to get the correct value of FEDMSG_COUNT you have to run command

http get https://apps.fedoraproject.org/datagrepper/raw/user==$FASUSERNAME

So I first installed python3-httpie package, then tried to run
http get https://apps.fedoraproject.org/datagrepper/raw/user==germano
http get https://apps.fedoraproject.org/datagrepper/raw/user==$germano
http get https://apps.fedoraproject.org/datagrepper/raw/user==$GERMANO
http get https://apps.fedoraproject.org/datagrepper/raw/user=GERMANO
http get https://apps.fedoraproject.org/datagrepper/raw/user=germano

but all of them returned

HTTP/1.1 404 NOT FOUND
AppServer: proxy05.fedoraproject.org
AppTime: D=297998
Connection: Keep-Alive
Content-Length: 21
Content-Type: application/json
Keep-Alive: timeout=15, max=500
Server: Apache/2.4.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload

{
"error": "not_found"
}


raw?user, not raw/user
http get https://apps.fedoraproject.org/datagrepper/raw?user==germano

does not return any user statistic

HTTP/1.1 200 OK
AppServer: proxy09.fedoraproject.org
AppTime: D=108606
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 188
Content-Type: application/json
Date: Sun, 12 Feb 2017 13:35:19 GMT
Keep-Alive: timeout=15, max=500
Server: Apache/2.4.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5
Strict-Transport-Security: max-age 15768000; includeSubDomains; preload
Vary: Accept-Encoding

{
"arguments": {
"categories": [],
"contains": [],
"delta": null,
"end": null,
"grouped": false,
"meta": [],
"not_categories": [],
"not_packages": [],
"not_topics": [],
"not_users": [],
"order": "desc",
"packages": [],
"page": 1,
"rows_per_page": 25,
"start": null,
"topics": [],
"users": [
"=germano"
]
},
"count": 0,
"pages": 0,
"raw_messages": [],
"total": 0
}

=, not ==
Now it works, thank you very much

Login to comment on this ticket.

Metadata