Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runserver_plus never send a response #1845

Open
nicokant opened this issue Nov 1, 2023 · 0 comments
Open

runserver_plus never send a response #1845

nicokant opened this issue Nov 1, 2023 · 0 comments

Comments

@nicokant
Copy link

nicokant commented Nov 1, 2023

I've got a strange behaviour with the runserver_plus command:
sometimes django doesn't send back a response, despite my view function has actually generated a valid HttpResponse. Note that this error doesn't happen when using the standard runserver command.

In order to reproduce you can refer to the repository https://github.com/NINAnor/nina-catalogue and to it's setup instructions.
When everything is installed and the server is up and running, using curl or postman you can send a POST request to http://localhost:8000/csw/ with the following payload:

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" maxRecords="10" xmlns:gmd="http://www.isotc211.org/2005/gmd">
    <csw:Query typeNames="csw:Record">
			<csw:ElementSetName>full</csw:ElementSetName>
    </csw:Query>
</csw:GetRecords>

This will not return an answer, but from the logs you can actually see that the response has been generated.

You can change runserver_pluswith runserver inside the docker-compose.yml file and try again, in this case everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant