riazXrazor / udemy-dl

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

Says this to me can you help me? #8

Closed crybf closed 6 years ago

crybf commented 7 years ago
          _                                          _   _

| | __ _ _| | | | | | | | / | / _ \ | '_ _ \ | | | | ___ / ` | | | | || | | (_| | | / | | | | | | | |_| | |___| | (| | | | _,| _,_| _| || || || _, | _,| || |/ ? Enter your Udemy username : Myname@hotmail.com ? Enter your password: password ? Enter the course url to download from udemy: https://www.udemy.com/beavoiceactor/ C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308 var course_data_len = course_data['results'].length; ^

TypeError: Cannot read property 'length' of undefined at Request._callback (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308:52) at Request.self.callback (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:186:22) at emitTwo (events.js:125:13) at Request.emit (events.js:213:7) at Request. (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1163:10) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at IncomingMessage. (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1085:12) at Object.onceWrapper (events.js:312:30) at emitNone (events.js:110:20)

C:\Users\Myname>

this : ^ under "l" (length)

riazXrazor commented 7 years ago

Hi crybf,

Thanks for the feedback. Does the error occur for any course url or jst this one ?

crybf commented 7 years ago

any course url

shahsatish commented 7 years ago

Hi, This happened to me as well, but only for few of the courses, one of which is "devops-and-continuous-integration-with-jenkins-pipelines". Do we have any resolution so far? Any help would be greatly appreciated.

riazXrazor commented 7 years ago

some of the issues has been fixed.

vjmtrailheadx commented 7 years ago

Hi, This happened for me as well. But for some courses only

riazXrazor commented 7 years ago

Ok, I'll test few of the courses to find out the cause if i can and then try to fix it.

On Mon 27 Nov, 2017, 1:11 AM vjmtrailheadx, notifications@github.com wrote:

Hi, This happened for me as well. But for some courses only

— You are receiving this because you commented.

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

shahsatish commented 7 years ago

@riazXrazor, This seems to be happening when the courses are not enrolled for. I enrolled in these courses and was able to download it successfully, you may want to add a warning message here. However I'm getting a new error now. will post that in a new thread, will you please look into that as well.