Tgr added a comment.

  In theory the session provider autocreates as needed 
<https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/d07054a9973031050f4d4d95e01f142833b799e4/includes/Setup.php#580>.
 So it's probably one of three issues:
  
  1. some logic in the OAuth session provider incorrectly assumes that the user 
exists locally
  2. autocreation fails e.g. because of an abuse filter
  3. autocreation actually works but the request fails anyway because of 
replication lag
  
  The first one should be an easy fix if it's indeed the case.
  
  The second one is not really fixable, but it would be nice to 1) ensure it 
will never result in a valid anonymous request, 2) somehow communicate the 
issue to the user. I'm thinking SessionProvider could have a callback that's 
called after autocreation from the session, and that could generate an API 
error.
  
  The third one is not a big deal because the next request will succeed, but 
also not too hard to fix probably - just need to make sure that all attempts to 
load a user fall back to the primary on miss.

TASK DETAIL
  https://phabricator.wikimedia.org/T149672

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to