Setup - Bad request (400) #1

Closed
opened 2025-12-28 23:23:32 +01:00 by adam · 4 comments
Owner

Originally created by @robinvoor on GitHub (Jan 16, 2025).

I'm trying to setup this project. After running docker-compose up -d all containers have successfully started, but I still get a 'Bad request (400)' error. Not sure what to enter at URL, that might be the problem.

See the screenshot below for my docker-compose and .env settings:

Image


Edit
Also tried HTTPS_ENABLED=false.

Originally created by @robinvoor on GitHub (Jan 16, 2025). I'm trying to setup this project. After running `docker-compose up -d` all containers have successfully started, but I still get a 'Bad request (400)' error. Not sure what to enter at `URL`, that might be the problem. See the screenshot below for my docker-compose and .env settings: ![Image](https://github.com/user-attachments/assets/7223ca72-062a-4ba9-b937-fdd32a7d17d2) --- **Edit** Also tried `HTTPS_ENABLED=false`.
adam closed this issue 2025-12-28 23:23:32 +01:00
Author
Owner

@gijsprins93 commented on GitHub (Jan 16, 2025):

I have the exact same issue.

@gijsprins93 commented on GitHub (Jan 16, 2025): I have the exact same issue.
Author
Owner

@eitchtee commented on GitHub (Jan 16, 2025):

First thing, trying set DEBUG to true and check if it works. Or see what error message you get.

If it does, and you're not exposing this to the internet in any way, just using it locally, try setting DJANGO_ALLOWED_HOSTS to *.

Let me know how it goes.

@eitchtee commented on GitHub (Jan 16, 2025): First thing, trying set `DEBUG ` to `true` and check if it works. Or see what error message you get. If it does, and you're not exposing this to the internet in any way, just using it locally, try setting `DJANGO_ALLOWED_HOSTS` to `*`. Let me know how it goes.
Author
Owner

@gijsprins93 commented on GitHub (Jan 16, 2025):

Oh i found the "answer" in the logging of the server container. at the allowed hosts variable, fill in the hosts ip address of your docker machine. man...

@gijsprins93 commented on GitHub (Jan 16, 2025): Oh i found the "answer" in the logging of the server container. at the allowed hosts variable, fill in the hosts ip address of your docker machine. man...
Author
Owner

@robinvoor commented on GitHub (Jan 16, 2025):

As @gijsprins93 mentioned, I needed to put the host IP address of the docker server on the URL. You might want to mention this in the README @eitchtee

@robinvoor commented on GitHub (Jan 16, 2025): As @gijsprins93 mentioned, I needed to put the host IP address of the docker server on the `URL`. You might want to mention this in the README @eitchtee
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WYGIWYH#1