Coder Social home page Coder Social logo

Comments (14)

macbre avatar macbre commented on June 14, 2024

@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.

minecrafter avatar minecrafter commented on June 14, 2024

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.

macbre avatar macbre commented on June 14, 2024

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.

minecrafter avatar minecrafter commented on June 14, 2024

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.

macbre avatar macbre commented on June 14, 2024

@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.

minecrafter avatar minecrafter commented on June 14, 2024

I can take a look at the issue with node 0.10 in a bit.

from nodemw.

minecrafter avatar minecrafter commented on June 14, 2024

I managed to get some time to look into the issue. Under node 0.10 the issue is still present.

from nodemw.

macbre avatar macbre commented on June 14, 2024

@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.

minecrafter avatar minecrafter commented on June 14, 2024

I'm going to update to ~0.7.0 and try it again. You want node 0.10 or 4.x?

from nodemw.

macbre avatar macbre commented on June 14, 2024

Let's try with 4.x - the newer the better ;)

from nodemw.

minecrafter avatar minecrafter commented on June 14, 2024

Doesn't work: https://gist.github.com/minecrafter/394ed57817648a32c6a4

Running node v4.0.0

from nodemw.

macbre avatar macbre commented on June 14, 2024

@minecrafter: can you skip ignorewarnings: false option in a call to uploadByUrl? Or replace it with "0" (as a string)?

from nodemw.

minecrafter avatar minecrafter commented on June 14, 2024

Looks like that worked.

from nodemw.

macbre avatar macbre commented on June 14, 2024

Great!

from nodemw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.