I just added a view for testing ( I discover this problem working in
another project and in order to isolate it I started a brand new project
call "untitled1")
urls.py
{{{
from untitled1.views import test
urlpatterns = [
path('admin/', admin.site.urls),
path('home/', test, name='home'),
]
}}}
views.py
{{{
from django.http import HttpResponse
def test(request):
return HttpResponse("hello")
}}}
Every 60 s since I go to "localhost:8000/home" I see this error in the
terminal:
{{{
[24/Sep/2019 15:02:32] "GET /graphql HTTP/1.1" 404 2081
Not Found: /graphql
}}}
After some time from time to time I also have this error:
{{{
[24/Sep/2019 15:02:32] "GET /graphql HTTP/1.1" 404 2081
Not Found: /graphql
[24/Sep/2019 15:03:04] "GET /graphql HTTP/1.1" 404 2081
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 55219)
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 650, in process_request_thread
self.finish_request(request, client_address)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 720, in __init__
self.handle()
File
"/Users/robertofernandez/KMH/flowlemon_backend/untitled1/lib/python3.7
/site-packages/django/core/servers/basehttp.py", line 171, in handle
self.handle_one_request()
File
"/Users/robertofernandez/KMH/flowlemon_backend/untitled1/lib/python3.7
/site-packages/django/core/servers/basehttp.py", line 179, in
handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py",
line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
----------------------------------------
Not Found: /graphql
[24/Sep/2019 15:03:45] "GET /graphql HTTP/1.1" 404 2081
Not Found: /graphql
[24/Sep/2019 15:04:26] "GET /graphql HTTP/1.1" 404 2081
Not Found: /graphql
[24/Sep/2019 15:05:08] "GET /graphql HTTP/1.1" 404 2081
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 55233)
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 650, in process_request_thread
self.finish_request(request, client_address)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py",
line 720, in __init__
self.handle()
File
"/Users/robertofernandez/KMH/flowlemon_backend/untitled1/lib/python3.7
/site-packages/django/core/servers/basehttp.py", line 171, in handle
self.handle_one_request()
File
"/Users/robertofernandez/KMH/flowlemon_backend/untitled1/lib/python3.7
/site-packages/django/core/servers/basehttp.py", line 179, in
handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py",
line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
----------------------------------------
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30799>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> views.py
>
New description:
I created a new project from 0 using python 3.7.3 and the Django version
is 2.2.5, macOS High Sierra 10.13.2
urls.py
{{{
from untitled1.views import test
views.py
{{{
from django.http import HttpResponse
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30799#comment:1>
Old description:
> I created a new project from 0 using python 3.7.3 and the Django version
> is 2.2.5, macOS High Sierra 10.13.2
>
> views.py
>
New description:
I created a new project from 0 using python 3.7.3 and the Django version
is 2.2.5, macOS High Sierra 10.13.2
I just added a view for testing ( I discover this problem working in
another project and in order to isolate it I started a brand new project
call "untitled1")
urls.py
{{{
from untitled1.views import test
urlpatterns = [
path('admin/', admin.site.urls),
path('home/', test, name='home'),
]
}}}
views.py
{{{
from django.http import HttpResponse
def test(request):
return HttpResponse("hello")
}}}
Every 60 s since I go to "localhost:8000/home" I see this error in the
terminal:
{{{
[24/Sep/2019 15:02:32] "GET /graphql HTTP/1.1" 404 2081
Not Found: /graphql
}}}
After some time and without any additional navigation the error keeps
appearing periodically and at some point in throws Exceptions :
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30799#comment:2>
* status: new => closed
* resolution: => invalid
Comment:
That cannot be a Django problem, as Django never calls any `graphql`
request. I suppose this is some leftover service worker on localhost (just
a guess).
Please use support channels before opening tickets here:
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
--
Ticket URL: <https://code.djangoproject.com/ticket/30799#comment:3>
Comment (by Simon Charette):
Not sure if graphene is behind this `/graphql` endpoint but I encountered
a really similar issue a while ago that was caused by the fact
[https://github.com/syrusakbary/promise/issues/57#issuecomment-396716706
the promise library it uses is not thread safe] and Django's development
server uses threads by default. You can determine if that's the actual
issue by [https://docs.djangoproject.com/en/2.2/ref/django-admin
/#cmdoption-runserver-nothreading temporarily disabling multi-threading in
the development server].
As Claude said please seek advice from our support channels to confirm
this is an actual issue with Django itself before submitting a bug report
--
Ticket URL: <https://code.djangoproject.com/ticket/30799#comment:4>