Page MenuHomePhabricator

OAuth API fail
Closed, ResolvedPublicPRODUCTION ERROR

Description

Some (not all!) Wikimedia servers die with an error when performing API actions via OAuth. Instead of the requested JSON, they return a HTML error:

PHP fatal error: Call to undefined method ApiUsageException::newWithMesage()

There is an obvious typo here...?

Logstash board: https://logstash.wikimedia.org/goto/33e9ab2aaa6298692b493cc9a039d5a8

Over 24 hours:

  • ~ 2000 entries in mediawiki bucket
  • ~ 4000 entries in hhvm bucket

Event Timeline

Magnus triaged this task as Unbreak Now! priority.Dec 16 2016, 9:20 AM

Addendum: Observed on wikidata, with [action] => query, [meta] => userinfo; probably affects other API calls as well. Again, some servers seem to work, others don't.

Change 327713 had a related patch set uploaded (by Alex Monk):
Fix typo in function name

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

@Magnus, can you provide a script to reproduce the issue?

Change 327713 merged by jenkins-bot:
Fix typo in function name

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

Change 327714 had a related patch set uploaded (by Alex Monk):
Fix typo in function name

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

This works sometimes, but not others:
https://tools.wmflabs.org/widar/?test=1
If you see some chrome and JSON, it's fine, otherwise, WMF error messages.

Still broken for me

Change 327714 merged by jenkins-bot:
Fix typo in function name

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

Krenair claimed this task.

Thanks @Magnus, that link was useful.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:10 PM