Comments (14)
@minecrafter, please log the values of file
and from
variables or create the nodemw client with debug
config option set to true
- this will make console logging more verbose.
from nodemw.
Here's a run of the script with uploadByUrl
: http://paste.ubuntu.com/11726991/
For now I just reimplemented this part of the script using MediaWiki's native upload-by-URL capabilities, though I'd love to use a nicer API for this.
from nodemw.
The log contains huge amount of repeated files and URL fetches.
Some URLs can not be fetched from the origin:
error: Failed to fetch <http://media1.clubpenguin.com/play/v2/content/local/en/news/papers/20150610/content/overlays/supportMore.swf>
error: HTTP status 404
error: Unable to upload ENNews503SupportMore.swf Error: HTTP status 404
Please remove the duplicates and provide the log of a single failing upload. It's a challenge currently to dig through the log :)
from nodemw.
Modified the code to upload one random file from the selection, here's the log from that: http://paste.ubuntu.com/11727420/
The origin doesn't have some of the files and that's intended, I'll be cleaning that up.
from nodemw.
@minecrafter, I somehow missed that you're using iojs
. Are you able to run your code on node.js and reproduce the issue?
from nodemw.
I can take a look at the issue with node 0.10 in a bit.
from nodemw.
I managed to get some time to look into the issue. Under node 0.10 the issue is still present.
from nodemw.
@minecrafter: logs from iojs are kind of mysterious (Request to API failed: %s Error: Argument error, options.body.
- not showing the parameters). Can you provide logs from nodejs run?
from nodemw.
I'm going to update to ~0.7.0 and try it again. You want node 0.10 or 4.x?
from nodemw.
Let's try with 4.x - the newer the better ;)
from nodemw.
Doesn't work: https://gist.github.com/minecrafter/394ed57817648a32c6a4
Running node v4.0.0
from nodemw.
@minecrafter: can you skip ignorewarnings: false
option in a call to uploadByUrl
? Or replace it with "0"
(as a string)?
from nodemw.
Looks like that worked.
from nodemw.
Great!
from nodemw.
Related Issues (20)
- [0.11.0 Regression] Edits fail but claim success (err = null) HOT 3
- Support namespaces in getPagesByPrefix
- Allow to enumerate/include redirects HOT 3
- Replace jshint with eslint HOT 3
- Planning a release to NPM? HOT 1
- API Errors don't include the original response
- getArticle not working with special characters in title HOT 4
- TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string HOT 1
- SVG upload
- Typescript Types HOT 4
- Dont request new edit token each edit call AND prevent SCRF error
- Next parameter in client.api.call, how to use?
- How to pass parameters to the bot.parse call? HOT 1
- Replace the deprecated 'request' package HOT 2
- Add a command-line module
- CSRF token should be sent as last parameter in request payload
- Add a page edit integration test
- Update Fandom videos upload
- Introduce WikiData client
- `username`, `password`, and `domain` is missing on `BotOptions` type definition. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemw.