Thursday, October 29, 2020

Re: Can anyone help me fix this issue

You are looking for a key in the response from youtube that doesn't exist - therefore you get this error. You will need to go to the youtube api and see what the response should be.

Regards,

Andréas


Den tors 29 okt. 2020 kl 14:03 skrev Allen Yesudasan <allen@cet.ac.in>:
Environment: Request Method: POST Request URL: https://youtubedownloader244.herokuapp.com/lint Django Version: 3.1.1 Python Version: 3.6.12 Installed Applications: ['tube', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'] Installed Middleware: ['whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback (most recent call last): File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/app/maker/views.py", line 20, in lint yt = YouTube(video_url) File "/app/.heroku/python/lib/python3.6/site-packages/pytube/__main__.py", line 91, in __init__ self.prefetch() File "/app/.heroku/python/lib/python3.6/site-packages/pytube/__main__.py", line 183, in prefetch self.js_url = extract.js_url(self.watch_html) File "/app/.heroku/python/lib/python3.6/site-packages/pytube/extract.py", line 143, in js_url base_js = get_ytplayer_config(html)["assets"]["js"] Exception Type: KeyError at /lint Exception Value: 'assets'

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b4ec456-8122-4f00-9159-ac98b3f47cebn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCeh%2Bfn%3DiiMnnEw9D4wLuRYFXwspS%3DQUz%3DTP20ANQFTJfQ%40mail.gmail.com.

No comments:

Post a Comment