bit/mediawiki_upload — Issue #1: Cannot upload - Receive the following errors
Author: romeosidvicious
Created: 2012-02-28 17:07:41+00:00
State: open

I have blanked out the password in the following errors. I know it is loging in correctly as I can put in a bad password and receive a log in error rather than the errors below. The wiki is setup to allow .ods to be uploaded.

mediawiki_upload.py -u mpotter -p -w http:///w/api.php ifsapps.ods
Traceback (most recent call last):
File "/ifs/home/mpotter/Downloads/bit-mediawiki_upload-1f3b898/mediawiki_upload.py", line 300, in
upload_file(filename, opts.username, opts.password, opts.url, opts.license)
File "/ifs/home/mpotter/Downloads/bit-mediawiki_upload-1f3b898/mediawiki_upload.py", line 270, in upload_file
r = wiki.upload(filename, 'Initial Upload', description)
File "/ifs/home/mpotter/Downloads/bit-mediawiki_upload-1f3b898/mediawiki_upload.py", line 195, in upload
token = self.get_token(pagename, 'edit')
File "/ifs/home/mpotter/Downloads/bit-mediawiki_upload-1f3b898/mediawiki_upload.py", line 188, in get_token
})['query']['pages']['-1']['edittoken'])
KeyError: '-1'