Closed verkko closed 4 years ago
Hi @verkko can you share the whole stack trace of the error? The screenshot you are sharing takes away all the relevant data. It would be very helpful to have so I can understand what is happening. Also, can you share with me the URL you were trying to call?
Environment:
Request Method: POST Request URL: http://127.0.0.1:8000/comments/post/
Django Version: 3.0.5 Python Version: 3.7.6 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.admin', 'django.forms', 'crispy_forms', 'sorl.thumbnail', 'allauth', 'allauth.account', 'allauth.socialaccount', 'channels', 'django_comments', 'graphene_django', 'markdownx', 'taggit', 'bootcamp.users.apps.UsersConfig', 'bootcamp.articles.apps.ArticlesConfig', 'bootcamp.messager.apps.MessagerConfig', 'bootcamp.news.apps.NewsConfig', 'bootcamp.notifications.apps.NotificationsConfig', 'bootcamp.qa.apps.QaConfig', 'bootcamp.search.apps.SearchConfig', 'debug_toolbar', 'django_extensions'] Installed Middleware: ['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', 'debug_toolbar.middleware.DebugToolbarMiddleware']
Traceback (most recent call last):
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, callback_kwargs)
File "C:\Users\ameen\AppData\Local\Programs\Python\Python37\lib\contextlib.py", line 74, in inner
return func(*args, *kwds)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\utils\decorators.py", line 130, in _wrapped_view
response = view_func(request, args, kwargs)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\views\decorators\http.py", line 40, in inner
return func(request, *args, *kwargs)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django_comments\views\comments.py", line 126, in post_comment
request=request
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\dispatch\dispatcher.py", line 175, in send
for receiver in self._live_receivers(sender)
File "C:\Users\ameen\PycharmProjects\bk6\newbk\lib\site-packages\django\dispatch\dispatcher.py", line 175, in
Exception Type: ConnectionRefusedError at /comments/post/ Exception Value: [Errno 10061] Connect call failed ('127.0.0.1', 6379)
Ahh, I see, the issue you're experiencing is related to your Redis setup. Check your local redis configuration, and validate than the ASGI server is running properly.
Yeah, That got sloved. Can you please check this once.
This should solve, there is already a pull-request: https://github.com/Vamoss/bootcamp/commit/6d991dd400de1b1ce18261df3757a5dacf9a6762
It happens when a news doesn't have a URL in the text.
Fixed in the last version @verkko
I have installed on windows 10 locally. am getting an error while submitting my 1st news, Please find the image below