Questions tagged [400]

400 is the HTTP error code for "Bad Request".

HTTP error code 400 means the request cannot be fulfilled due to bad syntax.

44 questions
16
votes
1 answer

nginx Request line too large

I'm getting the error: Bad Request Request Line is too large (6060 > 4094) When I access the a specific url on my server like this: /api/categorize?packages=package1,package2,...packageN On nginx.conf I have: large_client_header_buffers 8…
Rafael Barros
  • 263
  • 1
  • 2
  • 6
7
votes
1 answer

Lot of 400 errors in the Apache logs

We have a hard time debugging 400 errors on our website. We have a lot of errors like this: 10.0.0.1 - - [08/Oct/2018:14:28:07 +0200] "GET /les-news/palmares/detail/article/la-lettre-de-motivation-ideale-pour-une-demande-de-stage-5224/ HTTP/1.1"…
COil
  • 207
  • 3
  • 12
5
votes
1 answer

request failed: error reading the headers

Recently I moved my servers from one provider to the other and started to get this messages in apache error log: "request failed: error reading the headers" Example from the error and corresponding access apache logs: ApacheServer$ cat …
Saker Falcon
  • 66
  • 1
  • 1
  • 5
5
votes
1 answer

How to make Apache return a custom page on a 400 error with malformed host headers?

I think what I was asking for was a bit hard to understand, so, I am trying to make it simpler... I need my server to have a custom 400 error page when it receives a request with a malformed host header. What I ideally want is ErrorDocument 400…
William Hilsum
  • 3,506
  • 5
  • 28
  • 39
5
votes
3 answers

How often should we expect 400 Bad Request?

We run an Apache2 web server which has somewhere in the vicinity of 2-3 million pages served every day (only HTML+CSS+Javascript, images and other content is served with Lighttpd). Our daily logwatch e-mail outputs somewhere between 3-5 "400 Bad…
Vegard Larsen
  • 285
  • 4
  • 9
4
votes
4 answers

HAProxy returns Bad Request (Invalid Host) for seemingly no reason

I've been trying to test a setup that looks like this: Website: Http GET Request -> Nginx -> HAProxy -> .Net application I've placed Nginx and HAProxy on the same Debian machine. However, HAProxy constantly returns "Bad Request (Invalid Host)". I've…
David
  • 213
  • 1
  • 3
  • 5
3
votes
2 answers

How can I track down the cause of a 400: Bad Request web service call to localhost?

This is on Windows Server 2003 Running IIS. I have an ASP.NET 2.0 website which is also hosting some web services. When the site makes a webservice call to itself (localhost), I get back a 404: Bad Request. I would like to see the actual request…
MStodd
  • 171
  • 1
  • 7
3
votes
0 answers

SVN checkout returns 400 error

I'm trying to download the http://code.opencv.org/svn/opencv/trunk/ repository of all of the OpenCV source code - as specified in an OpenCV installation tutorial. In the tutorial, the repository https://code.ros.org/svn/opencv/trunk/ is used, but…
eboix
  • 151
  • 1
  • 6
2
votes
0 answers

EventStore Bad Request (Invalid host) working in cluster

I'm using EventStore with the following configuration : --- RunProjections: All ClusterSize: 2 Db: /opt/eventstore/db DiscoverViaDns: false GossipSeed: 10.0.100.11:1113 GossipOnExt: false Log: /opt/eventstore/logs Index:…
frenchviking
  • 77
  • 1
  • 3
  • 8
2
votes
1 answer

Proxy websocket with parameters through proxypass/proxypassmatch without a VirtualHost

I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the questions here), but most of them suggest to use a…
smsimeon
  • 21
  • 1
2
votes
1 answer

Nginx reverse proxy issue for 4xx response code

I have configured nginx to proxy the request that comes to the port 8000, to route to a different ip. In the configuration i also add Access-control-Allow-Origin header. This works fine if server is responding with 2xx response codes. But if server…
Sam
  • 123
  • 4
2
votes
1 answer

Nginx Docker 400 Bad Request

I am currently trying to host nexus as a private registry for docker images within my organisation . My nginx configuration are as below . user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid …
Ali
  • 21
  • 1
  • 2
2
votes
1 answer

http headers vanish when proxying http errors through nginx

I'm using nginx as TLS terminator in front of an Apache 2.4 server. I'm using add_header X-Content-Type-Options nosniff; in nginx to add this header to every response. If the HTTP status code returned by Apache is below 400 the header is correctly…
Thilo
  • 203
  • 2
  • 10
2
votes
1 answer

Uploading file > 1 MB on Django admin gives 400 Bad Request response

I have a small Django (1.2.x) project deployed on Apache (2.x) via mod_wsgi (3.x). In the admin, if I upload a file < 1MB, I can get it through; however, for a file, say, 1.2MB in size, I get a 400 response from the server with "Error 400" in the…
ayaz
  • 483
  • 3
  • 10
2
votes
3 answers

Why am I getting a 400 BAD REQUEST error for simple GET request?

I'm using an old programming language (Adobe's Extendscript). It has a simple Socket object to send TCP/IP requests. The following lines always used to work for me: reply = ""; conn = new Socket; if (conn.open ("www.freelancebookdesign.com:80")) { …
Ariel
  • 21
  • 2
1
2 3