2017-11-16 8:26 GMT+02:00 Paul Schmehl <[email protected]>: > Thank you for that. That got me a step farther. I was able to auto-generate > the user-config.py file. > > When I try to login, I get a 404 error. (python pwb.py login) > > I'll post the log message (I used debug) in a second, but here's the url > that pywikibot is using: > > <https://wiki.vvfh.org/api.php?maxlag=5&meta=siteinfo|userinfo&uiprop=blockinfo|hasmsg&continue=&format=json&action=query&siprop=namespaces|namespacealiases|general> > > If you load that in your browser, you'll see that it displays json data, so > I don't understand why I'm getting the 404 message. > > Here's the log entry: > > 2017-11-15 10:35:23 bot.py, 977 in handle_args: DEBUG > handle_args() completed. > 2017-11-15 10:35:23 __init__.py, 1252 in Site: DEBUG > Instantiated APISite object 'vvfh:en' > 2017-11-15 10:35:23 site.py, 1614 in _get_general: DEBUG > general siteinfo not loaded yet. > 2017-11-15 10:35:23 site.py, 1625 in _get_general: DEBUG > Load siteinfo properties 'namespaces', 'namespacealiases' along with > 'general' > 2017-11-15 10:35:23 throttle.py, 83 in checkMultiplicity: DEBUG > Checking multiplicity: pid = False > 2017-11-15 10:35:23 throttle.py, 140 in checkMultiplicity: VERBOSE > Found 1 vvfh:en processes running, including this one. > 2017-11-15 10:35:23 api.py, 1948 in submit: DEBUG > API request to vvfh:en (uses get: False): > Headers: {'Content-Type': 'application/x-www-form-urlencoded'} > URI: '/api.php' > Body: > 'maxlag=5&meta=siteinfo%7Cuserinfo&uiprop=blockinfo%7Chasmsg&continue=&format=json&action=query&siprop=namespaces%7Cnamespacealiases%7Cgeneral' > 2017-11-15 10:35:23 > /usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py, 858 in > connectionpool: WARNING > /usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py:858: > InsecureRequestWarning: Unverified HTTPS request is being made. Adding > certificate verification is strongly advised. See: > https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings > 2017-11-15 10:35:23 http.py, 409 in error_handling_callback: > WARNING Http response status 404 > 2017-11-15 10:35:23 threadedhttp.py, 139 in encoding: VERBOSE > Http response doesn't contain a charset. > 2017-11-15 10:35:23 api.py, 1981 in submit: DEBUG > API response received from vvfh:en: > <!doctype html> > <!--[if lt IE 7]> <html lang="en-us" class="no-js ie6"> <![endif]--> > <!--[if IE 7]> <html lang="en-us" class="no-js ie7"> <![endif]--> > <!--[if IE 8]> <html lang="en-us" class="no-js ie8"> <![endif]--> > <!--[if IE 9]> <html lang="en-us" class="no-js ie9"> <![endif]--> > <!--[if gt IE 9]><!--> <html lang="en-us" class="no-js"> <!--<![endif]--> > <head> > <meta charset="utf-8"> > <meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" > /> > <meta name="viewport" content="width=device-width, > initial-scale=1.0"> > <meta name="copyright" content="Copyright 2012 Ubiquiti > Networks, Inc. All rights reserved."> > > <title>EdgeOS - 404 Error</title> > > <link rel="shortcut icon" href="/media/global/favicon.png" /> > <link rel="stylesheet" > href="/lib/1434480045/stylesheets/css/reset.min.css" type="text/css" > media="screen" /> > <link rel="stylesheet" > href="/lib/1434480045/fonts/open-sans/stylesheet.min.css" type="text/css" > media="screen" /> > <link rel="stylesheet" > href="/lib/1434480045/stylesheets/css/core.min.css" type="text/css" > media="screen" /> > <link rel="stylesheet" > href="/lib/1434480045/stylesheets/css/edge.min.css" type="text/css" > media="screen" /> > <link rel="stylesheet" > href="/lib/1434480045/stylesheets/css/fileuploader.min.css" type="text/css" > media="screen" /> > > <script type="text/javascript" > src="/lib/1434480045/js/libs/modernizr.custom.js"></script> > </head> > <body> > > <!-- Start: Page Content --> > <div id="PageContent"> > > <!-- Start: Header --> > <div id="PageHeader" class="page-header"> > <div class="ir > edgeos-header-logo">EdgeOS</div> > </div> > <!-- End: Header --> > > <!-- Start: Main Panel --> > <div id="MainPanel" class="main-panel"> > > <!-- Start: Content --> > <div class="content-outer-container"> > <div class="content-inner-container"> > <div class="content"> > <div id="Error" > class="main-section"> > <h1 > class="section-title">Error: Not Found</h1> > > > <div > class="section-container tall basic"> > > <div id="StatusCode"> > > 404 </div> > > </div> > </div> > </div> > </div> > </div> > </div> > </div> > <!-- End: Page Content --> > </body> > </html>
That HTML looks suspicious, since it seems like an Ubiquity router error. Are you sure you're actually getting to the server and not being blocked/filtered by your WiFi? Also 404 errors usually leave log messages on the server, you might want to checke those as well for any clues. Best regards, Strainu _______________________________________________ pywikibot mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot
