Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#30799 closed Bug (invalid)

Unknown call done to "GET /graphql HTTP/1.1" with brand new project django 2.2.5

Reported by: Roberto Fernandez Diaz Owned by: nobody
Component: Uncategorized Version: 2.2
Severity: Release blocker Keywords: graphql, http
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Roberto Fernandez Diaz)

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 :

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

Change History (4)

comment:1 by Roberto Fernandez Diaz, 5 years ago

Description: modified (diff)

comment:2 by Roberto Fernandez Diaz, 5 years ago

Description: modified (diff)

comment:3 by Claude Paroz, 5 years ago

Resolution: invalid
Status: newclosed

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

comment:4 by Simon Charette, 5 years ago

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

Note: See TracTickets for help on using tickets.
Back to Top