FrancoisMentec / OpenCompare2

https://opencompare.org/
3 stars 4 forks source link

Import issue #5

Closed miage-pdl closed 6 years ago

miage-pdl commented 6 years ago

In localhost when I tried to import the data using a Wikipedia URL the user is receiving the next message "el.firstChild.getAttribute". The JSON import is working without problems.

TypeError: el.firstChild.getAttribute is not a function
    at elementToValue (/Users/christianmonzon/Downloads/OpenCompare2-master/src/importer.js:136:57)
    at IncomingMessage.<anonymous> (/Users/christianmonzon/Downloads/OpenCompare2-master/src/importer.js:194:26)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Informations : source: https://opencompare.org/

acherm commented 6 years ago

Same here: the import from an URL (eg Wikipedia) does not work. The import from an URL outside Wikipedia does not work as well eg https://vincentarelbundock.github.io/Rdatasets/datasets.html

CSV import works very well.

FAMILIAR-project commented 6 years ago

Fixed! commit 50ee213