Wednesday, October 28, 2020

Can anyone help me fix this issue

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.

No comments:

Post a Comment