New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot upload - Receive the following errors #1
Comments
can you pull 3f0ee67 and run it with --debug to see what the api resonse is for the get_token call? |
Here is the use case. The file does exist. It is file that we upload once a $wgAllowCopyUploads = true; The second one there should allow me to upload files that already exist if ./mediawiki_upload.py --debug -u mpotter -p -d -w This is the output with a file that doesn't exist (as there is a different ./mediawiki_upload.py --debug -u mpotter -p -d -w Thanks for such a quick response! On Tue, Feb 28, 2012 at 12:40 PM, bit <
|
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'
The text was updated successfully, but these errors were encountered: