riazXrazor / udemy-dl

Nodejs script to download a udemy.com course, for personal offline use
285 stars 68 forks source link

Error while downloading... #31

Closed c0ppo closed 6 years ago

c0ppo commented 6 years ago

I've been using this wonderful script for quite some time now. And everything worked like a charm. But when I tried to download today, I got some errors. I've tried updating npm, udl, reinstalling everything, but nothing seems to help.

I'm on MacOS, latest version (non beta). This is the error that I get:

/usr/local/lib/node_modules/udemy-dl/lib/core.js:53
      cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]);
                                                               ^

TypeError: Cannot read property '1' of null
    at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:53:64)
    at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1101:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)
riazXrazor commented 6 years ago

May be udemy site ws down at that time, coz i jst tried the script its working.

Plz try to login again.

On Thu 10 May, 2018, 4:28 PM c0ppo, notifications@github.com wrote:

I've been using this wonderful script for quite some time now. And everything worked like a charm. But when I tried to download today, I got some errors. I've tried updating npm, udl, reinstalling everything, but nothing seems to help.

I'm on MacOS, latest version (non beta). This is the error that I get:

/usr/local/lib/node_modules/udemy-dl/lib/core.js:53 cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]); ^

TypeError: Cannot read property '1' of null at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:53:64) at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22) at Request.emit (events.js:180:13) at Request. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10) at Request.emit (events.js:180:13) at IncomingMessage. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12) at Object.onceWrapper (events.js:272:13) at IncomingMessage.emit (events.js:185:15) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/riazXrazor/udemy-dl/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/AMlUe2orA8wuOKPZ1-tIM6OFuedzcuE4ks5txB1RgaJpZM4T5uIn .

c0ppo commented 6 years ago

Nope, Udemy was online. And is still. And still not working for me. But it's not the scripts fault, since it does work on my laptop. I'm gonna try to fix it for my computer, but since laptop is working like expected, I'm gonna use that for now.

Thank you for the really quick response.

riazXrazor commented 6 years ago

Aaa i see, btw let me kno if u find anything ok. :+1:

davidhenley commented 6 years ago

Same issue. Why is this closed?

c0ppo commented 6 years ago

I've closed it, because I've thought it was only me, a local problem with one computer. But it appears that this wasn't the case. Now my laptop is stuck as well.

But I did this a few hours ago, on my desktop and my laptop:

npm install -g udemy-dl

Without deleting, I've just run install script again. Restarted terminal, and it works. At least for now. I haven't been able to find what causes the problem in the first place, but this helped. At least for now.

riazXrazor commented 6 years ago

Coz I updated the code today and released a new version.

On Mon 14 May, 2018, 8:10 PM c0ppo, notifications@github.com wrote:

I've closed it, because I've thought it was only me, a local problem with one computer. But it appears that this wasn't the case. Now my laptop is stuck as well.

But I did this a few hours ago, on my desktop and my laptop:

npm install -g udemy-dl

Without deleting, I've just run install script again. Restarted terminal, and it works. At least for now. I haven't been able to find what causes the problem in the first place, but this helped. At least for now.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/riazXrazor/udemy-dl/issues/31#issuecomment-388841213, or mute the thread https://github.com/notifications/unsubscribe-auth/AMlUewyWWMId21-fcM8Nf1drScONhHNfks5tyZdIgaJpZM4T5uIn .