해결됨: code%3DH18 desc%3D%22Server Request Interrupted%22 django

core.Exceptions.Http404

서버 오류로 인해 요청이 중단되었습니다.

-admin.py runserver

If you are running Django on a development server and you get an error code that says "Server Request Interrupted", it means that the server was unable to process your request. This can happen for a number of reasons, including if the server is overloaded or if there is an error in your code.

Heroku Django Gunicorn 오류 H18

이 오류는 Gunicorn 서버를 사용하여 Django 앱을 Heroku에 배포하려고 할 때 발생할 수 있습니다. 이 오류는 일반적으로 psycopg2 라이브러리에 대한 종속성 누락으로 인해 발생합니다.

이 문제를 해결하려면 다음 명령을 사용하여 Heroku 인스턴스에 psycopg2를 설치할 수 있습니다.

$ heroku 애드온:python-psycopg2 추가

psycopg2를 설치한 후 다음 명령을 사용하여 Django 앱을 다시 배포할 수 있습니다.

$ heroku 배포 –app my-django

중단된 요청

Django에서 요청이 중단되면 요청 객체가 None 으로 설정됩니다. 이는 요청이 취소되었으며 더 이상 처리되지 않음을 의미합니다.

요청 처리를 계속하려면 process_request()를 다시 호출해야 합니다.

"H18 서버 요청이 중단됨" 오류 디버깅

Django에서 "H18 Server request interrupted" 오류를 디버깅하는 것은 어려울 수 있습니다. 이러한 오류의 가장 일반적인 원인은 H18 서버의 응답을 기다리는 동안 시간 초과입니다. 이러한 오류를 디버깅하려면 시간 초과의 원인을 식별하고 이를 해결하기 위해 노력해야 합니다.

관련 게시물:

코멘트 남김