Page MenuHomePhabricator

Popups not working on sysop-it.wikipedia because REST endpoint is returning a 500
Closed, ResolvedPublic

Description

On the newly created sysop-it.wikipedia.org, popups aren't working. If you hover on a link to make the popup appear, it will contain the text

There was an issue displaying this preview

And by looking at the browser console, I see a 500 error for the url https://sysop-it.wikipedia.org/api/rest_v1/page/summary/PAGETITLE

Where PAGETITLE is the title of an existing page. By examining the request, I see that the actual response is

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/server_error","title":"Site info fetch failed.","method":"get","detail":"SiteInfo is unavailable for sysop-it.wikipedia.org","uri":"/sysop-it.wikipedia.org/v1/page/summary/PAGETITLE"}

I'm leaving it up to sysadmins to decide what to do. Configuring the REST endpoint would be good, but OTOH, we don't really need popups, so disabling them is also fine. Whatever is easier/quicker to do will work. Thanks!

Event Timeline

The easiest thing would be to set wmgUsePopups to false :-). I tried to see what happens when I use similar URL at private wikis I have access to, and https://checkuser.wikimedia.org/api/rest_v1/page/summary/User:Martin_Urbanec throws:

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/checkuser.wikimedia.org/v1/page/summary/User%3AMartin_Urbanec"}

Change 661788 had a related patch set uploaded (by Urbanecm; owner: Urbanecm):
[operations/mediawiki-config@master] sysop_itwiki: Set wmgUsePopups to false

https://gerrit.wikimedia.org/r/661788

Change 661788 merged by jenkins-bot:
[operations/mediawiki-config@master] sysop_itwiki: Set wmgUsePopups to false

https://gerrit.wikimedia.org/r/661788

Mentioned in SAL (#wikimedia-operations) [2021-02-04T19:35:39Z] <urbanecm@deploy1001> Synchronized wmf-config/InitialiseSettings.php: 968ae8b69d7f743f0e589ba3568de36bc462c7d6: sysop_itwiki: Set wmgUsePopups to false (T259480) (duration: 01m 06s)

Urbanecm claimed this task.