Page MenuHomePhabricator

[wmf.9] 'Failed to fetch notifications' displayed on the first load
Open, Needs TriagePublic

Description

The issue is not specific to wmf.9. It's not too serious - it goes away after reloading the page or navigating between pages.

Not too easy to reproduce.

  1. On testwiki log in as a user who has cross-wiki notifications (preferably from several wikis)
  2. After being logged in, click on the one of Notifications badges - the overlay will display 'Failed to fetch notifications'

Screen Shot 2017-01-31 at 2.44.59 PM.png (544×607 px, 111 KB)

Screen Shot 2017-01-31 at 2.53.02 PM.png (209×1 px, 59 KB)

Screen Shot 2017-01-31 at 2.53.18 PM.png (535×1 px, 238 KB)

Note: I put Request/Response headers into the comments

Event Timeline

It seems like before opening the Notifications overlay, an additional confirmation of the login status is required:

Request URL:
GET  https://test.wikipedia.org/w/api.php?action=query&format=json&meta=notifications&notsections=message&notformat=model&notlimit=25&notprop=list%7Ccount%7CseenTime&uselang=en&notcrosswikisummary=1&notunreadfirst=1&notbundle=1&_=1485903315044
Query String
action=query
format=json
meta=notifications
notsections=message
notformat=model
notlimit=25
notprop=list|count|seenTime
uselang=en
notcrosswikisummary=1
notunreadfirst=1
notbundle=1
_=1485903315044
Request Header:
Host: test.wikipedia.org
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
X-Requested-With: XMLHttpRequest
Referer: https://test.wikipedia.org/wiki/Special:Notifications
Cookie: testwikiUserName=Zilant17; WMF-Last-Access=31-Jan-2017; CP=H2; testwikimwuser-sessionId=6d5f92f521960ab6; GeoIP=US:CA:San_Francisco:37.79:-122.39:v4; VEE=wikitext; testwikiGeoFeaturesUser2=6e755ca635cf507b
Connection: keep-alive
Response headers

Accept-Ranges: bytes
Age: 0
Cache-Control: private, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 245
Content-Type: application/json; charset=utf-8
Date: Tue, 31 Jan 2017 23:02:06 GMT
Server: mw1285.eqiad.wmnet
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Vary: Accept-Encoding
Via: 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
X-Cache: cp1053 pass, cp2023 pass, cp4017 pass, cp4017 pass
X-Cache-Status: pass
X-Client-IP: 99.57.138.66
X-Content-Type-Options: nosniff
X-Firefox-Spdy: h2
X-Frame-Options: DENY
X-Varnish: 1063714355, 595580192, 93001135, 198309117
backend-timing: D=52048 t=1485903726623661
mediawiki-api-error: login-required
p3p: CP="This is not a P3P policy! See https://test.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info."
x-analytics: WMF-Last-Access=31-Jan-2017;https=1
x-powered-by: HHVM/3.12.7

Special:Notifications page also display the same problem (wmf.11) - checked in several browsers:

Screen Shot 2017-02-06 at 2.16.14 PM.png (215×480 px, 41 KB)