Page MenuHomePhabricator

KeyError on "features"
Closed, ResolvedPublic

Description

This error happened about 60% of the time during a stress test, and I was able to reproduce it about that often by requesting:

curl 'http:/ores1003.eqiad.wmnet:8081/v3/scores/enwiki/123456?features'

{
  "error": {
    "code": "internal server error",
    "message": "Traceback (most recent call last):\n  File \"./ores/wsgi/routes/v3/scores.py\", line 28, in process_score_request\n    score_response = scoring_system.score(score_request)\n  File \"./ores/scoring_systems/scoring_system.py\", line 42, in score\n    response = self._score(request)\n  File \"./ores/scoring_systems/celery_queue.py\", line 192, in _score\n    return super()._score(*args, **kwargs)\n  File \"./ores/scoring_systems/scoring_system.py\", line 104, in _score\n    rev_id, model_name, model_score['features'])\nKeyError: 'features'\n"
  }
}

The code I'm running *does* include a fix for T179509, so that's probably not the issue.

Maybe another error is being masked, and no score was generated?

Event Timeline

Ladsgroup claimed this task.
Ladsgroup subscribed.

This is not happening anymore, feel free to re-open if it happens again.