ahmedayman4a / LyndaCoursesDownloader

Cross platform .net core program to download lynda.com courses for offline use
66 stars 31 forks source link

Couldn't login #10

Closed itsmenow1 closed 3 years ago

itsmenow1 commented 3 years ago

I couldn't login with logs below

2020-12-04 17:38:06.601 +07:00 [INF] Restoring config file 2020-12-04 17:38:06.657 +07:00 [INF] No config file to restore is found 2020-12-04 17:38:07.380 +07:00 [INF] Acquired data from config 2020-12-04 17:38:09.851 +07:00 [INF] Checking for updates... 2020-12-04 17:38:11.414 +07:00 [INF] Logging in 2020-12-04 17:38:12.601 +07:00 [INF] No updates detected. 2020-12-04 17:38:18.337 +07:00 [ERR] Unknown Exception System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at LyndaCoursesDownloader.CourseExtractor.Extractor.<>cDisplayClass11_0.b0(Task t) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at LyndaCoursesDownloader.GUIDownloader.MainForm.ExtractCourse() ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at LyndaCoursesDownloader.CourseExtractor.Extractor.<>cDisplayClass11_0.b0(Task t) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---

Please help

Thank you in advanced

ahmedayman4a commented 3 years ago

tdlr : The chromedriver needs to be updated to the same version as your chrome browser.

Long Explanation :

Chromedriver is how the program communicates with chrome and controls it. Everytime chrome is updated the chromedriver needs to be updated too. Firefox doesn't cause the same problem. You can update firefox without ever needing to update the firefox driver. That's why I recommend using firefox instead of chrome.

If you still want to use chrome then you have to: