[Django] #30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django 2.2.5

17 views
Skip to first unread message

Django

unread,
Sep 24, 2019, 11:15:47 AM9/24/19
to django-...@googlegroups.com
#30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django
2.2.5
-------------------------------------+-------------------------------------
Reporter: Roberto | Owner: nobody
Fernandez Diaz |
Type: Bug | Status: new
Component: | Version: 2.2
Uncategorized |
Severity: Release | Keywords: graphql, http
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I created a new project from 0 using python 3.7.3 and the Django version
is 2.2.5.

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.

Django

unread,
Sep 24, 2019, 11:21:35 AM9/24/19
to django-...@googlegroups.com
#30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django
2.2.5
-------------------------------------+-------------------------------------
Reporter: Roberto Fernandez | Owner: nobody

Diaz |
Type: Bug | Status: new
Component: Uncategorized | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: graphql, http | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Roberto Fernandez Diaz:

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>

Django

unread,
Sep 24, 2019, 11:23:10 AM9/24/19
to django-...@googlegroups.com
#30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django
2.2.5
-------------------------------------+-------------------------------------
Reporter: Roberto Fernandez | Owner: nobody

Diaz |
Type: Bug | Status: new
Component: Uncategorized | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: graphql, http | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Roberto Fernandez Diaz:

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>

Django

unread,
Sep 24, 2019, 12:23:13 PM9/24/19
to django-...@googlegroups.com
#30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django
2.2.5
-------------------------------------+-------------------------------------
Reporter: Roberto Fernandez | Owner: nobody
Diaz |
Type: Bug | Status: closed
Component: Uncategorized | Version: 2.2
Severity: Release blocker | Resolution: invalid

Keywords: graphql, http | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* 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>

Django

unread,
Sep 24, 2019, 2:23:32 PM9/24/19
to django-...@googlegroups.com
#30799: Unknown call done to "GET /graphql HTTP/1.1" with brand new project django
2.2.5
-------------------------------------+-------------------------------------
Reporter: Roberto Fernandez | Owner: nobody
Diaz |
Type: Bug | Status: closed
Component: Uncategorized | Version: 2.2
Severity: Release blocker | Resolution: invalid
Keywords: graphql, http | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages