Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin required #11

Open
joseluislucio opened this issue Jun 14, 2020 · 1 comment
Open

Pin required #11

joseluislucio opened this issue Jun 14, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@joseluislucio
Copy link

Trying to do my second course download I get the following error:

2020-06-14 13:48:07,881 root INFO [] Login step 1 - Done
2020-06-14 13:48:07,881 root INFO [
] Login step 2 - Logging In...
2020-06-14 13:48:08,518 root INFO [] Login step 2 - Done
2020-06-14 13:48:08,518 root INFO [
] -------------Done-------------
2020-06-14 13:48:08,518 root INFO [*] -------------Fetching Course-------------
Traceback (most recent call last):
File "linkedin_learning.py", line 225, in
loop.run_until_complete(process())
File "C:\Program Files (x86)\Python38-32\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "linkedin_learning.py", line 213, in process
await fetch_courses()
File "linkedin_learning.py", line 102, in fetch_courses
return await asyncio.gather(*map(fetch_course, COURSES))
File "linkedin_learning.py", line 111, in fetch_course
data = await resp.json()
File "C:\Program Files (x86)\Python38-32\lib\site-packages\aiohttp\client_reqrep.py", line 1026, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://www.linkedin.com/learning-api/detailedCourses??fields=videos&addParagraphsToTranscript=true&courseSlug=windows-management-with-system-center-configuration-manager&q=slugs')

And I also received an email with a pin number to login. Is there any way to send the pin received?

Regards

@J3Patel
Copy link
Owner

J3Patel commented Dec 24, 2020

@joseluislucio this mimetype issue is fixed now, have you added 2 factor authentication in your linkedin account?

@J3Patel J3Patel added the enhancement New feature or request label Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants