Page MenuHomePhabricator

Fetching SE on slow connection throws Uncaught TypeError: Cannot read property 'tasktype' of undefined
Open, Needs TriagePublic


Somewhat an edge case - on a very slow network (I used the following profile when testing: Download -12 kb/s; Upload - 20kb/s; Latency 500ms), SE module throws two Console errors:

Uncaught TypeError: Cannot read property 'tasktype' of undefined
    at SuggestedEditsModule.updateTaskExplanationWidget 
    at SuggestedEditsModule.updateControls 
    at SuggestedEditsModule.showCard 
    at SuggestedEditsModule.restoreState 
    at SuggestedEditsFiltersWidget.OO.EventEmitter.emit
    at TopicFiltersDialog.OO.EventEmitter.emit
    at TopicFiltersDialog.<anonymous>


Fetching task suggestions failed: timeout http

The UI would display mismatch between the counter and the actual result:

"No more suggestions""No suggested edits are available..."
Screen Shot 2020-11-04 at 10.32.22 AM.png (671×407 px, 53 KB)
Screen Shot 2020-11-06 at 1.37.23 PM.png (593×563 px, 50 KB)
Screen Shot 2020-11-06 at 1.50.25 PM.png (563×577 px, 41 KB)

Steps to reproduce:

  • select Network profile with very slow connection speed and disable cache
  • enable Homepage and click through introduction
  • when a SE card start loading select a filter and try to navigate between cards. You'll see the mismatch between the warning message stating that there are no SE cards are available and the counter (see the screenshots above)

Here is the animated gif:

SE_initiation_timeout1.gif (691×668 px, 1 MB)