MarcoAurelio added a comment.

  In T328814#8589920 <https://phabricator.wikimedia.org/T328814#8589920>, 
@chiefgeek157 wrote:
  
  > What this seems to say is that SiteInfo attempts to go get tokens, but the 
API request includes requests for info that are behind the login wall for the 
API. Rather than only getting the needed token, other info is also requested, 
and that info requires the user to already be logged in. So it will never 
succeed from what I can tell.
  
  That seems to be the case:
  
  name=pwb.py login -v -debug
    API Error: query=
    ("{'action': ['query'], 'meta': ['siteinfo', 'userinfo'], 'siprop': "
     "['namespaces', 'namespacealiases', 'general'], 'continue': [True], 
'uiprop': "
     "['blockinfo', 'hasmsg'], 'maxlag': ['5'], 'format': ['json']}")
               response=
    {'error': {'code': 'readapidenied', 'info': 'You need read permission to 
use this module.', 'servedby': 'mw1402', 'help': 'See 
https://xxxx.wikimedia.org/w/api.php for API usage. Subscribe to the 
mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt;
 for notice of API deprecations and breaking changes.'}, 'servedby': 'mw1402'}
    ERROR: You have no API read permissions. Seems you are not logged in.
    ERROR: Username 'xxx@xxx' does not have read permissions on xxx:xxx
    Not logged in on xxx:xxx.

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

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

To: MarcoAurelio
Cc: MarcoAurelio, Xqt, Aklapper, chiefgeek157, pywikibot-bugs-list, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, TerraCodes, Dvorapa, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to