Page MenuHomePhabricator

test_search_where fails on *.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled
Closed, DuplicatePublic

Description

With site en.wikisource.beta.wmflabs.org , test_search_where fails with error gsrsearch-title-disabled: title search is disabled . This possibly also occurs on en.wikipedia.beta.wmflabs.org , however those jobs are incredibly broken and do not reach this test

It broke with travis job #3315.14, not appearing in 3314.14 , so it is almost certainly caused by 39b37c4a9f (T127807)

======================================================================
ERROR: Test the site.search() method with 'where' parameter.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/jayvdb/pywikibot-core/tests/site_tests.py", line 1407, in test_search_where
    get_redirects=True, where='title'):
  File "/home/travis/build/jayvdb/pywikibot-core/pywikibot/data/api.py", line 2727, in __iter__
    self.data = self.request.submit()
  File "/home/travis/build/jayvdb/pywikibot-core/pywikibot/data/api.py", line 2179, in submit
    raise APIError(**result['error'])
nose.proxy.APIError: gsrsearch-title-disabled: title search is disabled [help:See http://en.wikisource.beta.wmflabs.org/w/api.php for API usage]
-------------------- >> begin captured logging << --------------------
pywiki: WARNING: search: namespaces cannot be empty; using [0].
requests.packages.urllib3.connectionpool: DEBUG: "POST /w/api.php HTTP/1.1" 200 299
pywiki: WARNING: search: namespaces cannot be empty; using [0].
requests.packages.urllib3.connectionpool: DEBUG: "POST /w/api.php HTTP/1.1" 200 299
pywiki: WARNING: search: namespaces cannot be empty; using [0].
requests.packages.urllib3.connectionpool: DEBUG: "POST /w/api.php HTTP/1.1" 200 87
pywiki: WARNING: search: namespaces cannot be empty; using [0].
requests.packages.urllib3.connectionpool: DEBUG: "POST /w/api.php HTTP/1.1" 200 299
pywiki: WARNING: search: namespaces cannot be empty; using [0].
requests.packages.urllib3.connectionpool: DEBUG: "POST /w/api.php HTTP/1.1" 200 164
pywiki: WARNING: API error gsrsearch-title-disabled: title search is disabled
pywiki: VERBOSE: API Error: query=
"{'gsrlimit': ['10'], 'meta': ['userinfo'], 'maxlag': ['5'], 'uiprop': "
"['blockinfo', 'hasmsg'], 'action': ['query'], 'inprop': ['protection'], "
"'gsrwhat': ['title'], 'gsrnamespace': [0], 'format': ['json'], 'iiprop': "
"['timestamp', 'user', 'comment', 'url', 'size', 'sha1', 'metadata'], "
"'indexpageids': [True], 'prop': ['info', 'categoryinfo', 'imageinfo', "
"'proofread'], 'gsrsearch': ['wiki'], 'generator': ['search'], 'continue': "
'[True]}'
pywiki: VERBOSE:            response=
{'servedby': 'deployment-mediawiki02', 'error': {'info': 'title search is disabled', 'help': 'See http://en.wikisource.beta.wmflabs.org/w/api.php for API usage', 'code': 'gsrsearch-title-disabled'}}

Event Timeline

en.wikisource.beta.wmflabs.org Is not a wikimediafamily ?

jayvdb claimed this task.

en.wikisource.beta.wmflabs.org Is not a wikimediafamily ?

No it isnt, and it can not be. It is a different farm, with different SUL accounts.

So, we need some other way to detect search by title is disabled.

(whoops; no idea how that was set to Resolved :/)

jayvdb renamed this task from test_search_where fails on en.wikisource.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled to test_search_where fails on *.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled.May 28 2016, 6:03 PM