ducdev / aliexscrape

Get Aliexpress product details in JSON
MIT License
105 stars 32 forks source link

TypeError: Cannot read property '1' of null #7

Open JakeHenshall opened 5 years ago

JakeHenshall commented 5 years ago

Hey,

I run this code scrape 32853590425

But I get this error:

TypeError: Cannot read property '1' of null at /Users/jake/Code/aliexscrape/index.js:12:65 at tryCatcher (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/promise.js:694:18) at _drainQueueStep (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/async.js:138:12) at _drainQueue (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/async.js:131:9) at Async._drainQueues (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (/Users/jake/Code/aliexscrape/node_modules/bluebird/js/release/async.js:17:14) at processImmediate (internal/timers.js:439:21) undefined

Thanks Jake.

molotow11 commented 5 years ago

I have the same issue

DestroyerIV commented 5 years ago

the same problem...

mezzab commented 5 years ago

Same problem!

ducdev commented 5 years ago

Sorry guys for late response, actually I don't have much time for aliexscrape, then feel free to submit your PR and I will consider merging, thanks.

aorfevre commented 4 years ago

sounds like it request an authentication from cheerio; prompting the auth screen from aliexpress before showing the result. Don't know how to do authenticate cheerio to aliexpress if you can put me to the direction @ducdev ; I would love to invest time for that.

ducdev commented 4 years ago

sounds like it request an authentication from cheerio; prompting the auth screen from aliexpress before showing the result. Don't know how to do authenticate cheerio to aliexpress if you can put me to the direction @ducdev ; I would love to invest time for that.

If you are keen on and having time for it, please work around and submit your PR, thanks.