Mrl51337 created this task.
Mrl51337 added projects: Wikidata, wbstack.
Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION
**description**
this is related to
https://www.wikidata.org/w/api.php?action=help=wbsearchentities -
wbsearchentities randomly not returning search results for `XV wiek` keyword
**steps to reproduce**
curl -i
https://www.wikidata.org/w/api.php?action=wbsearchentities=json=pl=XV%20wiek
**expected result**
this is always returned
{"searchinfo":{"search":"XV
wiek"},"search":[{"id":"Q7018","title":"Q7018","pageid":8152,"repository":"wikidata","url":"//www.wikidata.org/wiki/Q7018","concepturi":"http://www.wikidata.org/entity/Q7018","label":"15th
century","description":"century","match":{"type":"label","language":"pl","text":"XV
wiek"},"aliases":["XV
wiek"]},{"id":"Q178696","title":"Q178696","pageid":178087,"repository":"wikidata","url":"//www.wikidata.org/wiki/Q178696","concepturi":"http://www.wikidata.org/entity/Q178696","label":"15th
century
BC","description":"century","match":{"type":"label","language":"pl","text":"XV
wiek p.n.e."},"aliases":["XV wiek
p.n.e."]},{"id":"Q2711964","title":"Q2711964","pageid":2607583,"repository":"wikidata","url":"//www.wikidata.org/wiki/Q2711964","concepturi":"http://www.wikidata.org/entity/Q2711964","label":"15th
century in literature","description":"literature-related events during the
15th century","match":{"type":"label","language":"pl","text":"XV wiek -
literatura"},"aliases":["XV wiek - literatura"]}],"success":1}
**actual result**
randomly this is returned
{"searchinfo":{"search":"XV wiek"},"search":[],"success":1}
**additional info**
example headers - probably useless info
http headers of "no results response"
HTTP/2 200
date: Mon, 07 Jun 2021 17:08:55 GMT
server: mw1388.eqiad.wmnet
x-content-type-options: nosniff
p3p: CP="See https://www.wikidata.org/wiki/Special:CentralAutoLogin/P3P for
more info."
x-frame-options: DENY
content-disposition: inline; filename=api-result.json
vary:
Accept-Encoding,Treat-as-Untrusted,X-Forwarded-Proto,Cookie,Authorization
cache-control: private, must-revalidate, max-age=0
content-type: application/json; charset=utf-8
age: 0
x-cache: cp3060 miss, cp3058 pass
x-cache-status: pass
server-timing: cache;desc="pass", host;desc="cp3058"
strict-transport-security: max-age=106384710; includeSubDomains; preload
report-to: { "group": "wm_nel", "max_age": 86400, "endpoints": [{ "url":
"https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error_uri=/w3c/reportingapi/network_error/1.0.0;
}] }
nel: { "report_to": "wm_nel", "max_age": 86400, "failure_fraction": 0.05,
"success_fraction": 0.0}
permissions-policy: interest-cohort=()
set-cookie: WMF-Last-Access=07-Jun-2021;Path=/;HttpOnly;secure;Expires=Fri,
09 Jul 2021 12:00:00 GMT
set-cookie:
WMF-Last-Access-Global=07-Jun-2021;Path=/;Domain=.wikidata.org;HttpOnly;secure;Expires=Fri,
09 Jul 2021 12:00:00 GMT
x-client-ip: 109.173.159.152
set-cookie: GeoIP=PL:30:Poznan:52.40:16.90:v4; Path=/; secure;
Domain=.wikidata.org
accept-ranges: bytes
content-length: 59
http headers of "results response"
HTTP/2 200
date: Mon, 07 Jun 2021 17:10:07 GMT
server: mw1287.eqiad.wmnet
x-content-type-options: nosniff
p3p: CP="See https://www.wikidata.org/wiki/Special:CentralAutoLogin/P3P for
more info."
x-search-id: e1ixdzulsy1hvlx5g7jg0zfep
x-frame-options: DENY
content-disposition: inline; filename=api-result.json
vary:
Accept-Encoding,Treat-as-Untrusted,X-Forwarded-Proto,Cookie,Authorization
cache-control: private, must-revalidate, max-age=0
content-type: application/json; charset=utf-8
age: 2
x-cache: cp3064 miss, cp3058 pass
x-cache-status: pass
server-timing: cache;desc="pass", host;desc="cp3058"
strict-transport-secur