Questions tagged [bad-request]

HTTP status code 400, implying the request was not understood by the server and should not be redone without modifications.

641 questions
2
votes
0 answers

Keep receiving "400 Bad Request" when trying to send files in mutlipart/form-data using OpenAPi 3.0.3 with Vert.x 4.1.0

I have a Vert.x OpenAPI server that previously used Vert.x v3.7.0. It had a request that was used to upload files to a specified project. The definition of this endpoint looks like this in the .yaml file: requestBody: content: …
csuvi98
  • 61
  • 3
2
votes
2 answers

Scrapy : (400 Bad Request)HTTP status code is not handled or not allowed

As i am new to python and scrapy. I have been trying to scrape a website which is URL-fragmented. I am making a post request to get the response but unfortunately its not getting me the result. def start_requests(self): try: form =…
2
votes
0 answers

bad request with HttpPut (or HttpPost)

I'm trying to send a PUT (or a POST) to a server, but all I receive is a "400 bad request". From a look at the server the request arrives to apache, but it doesn't go on to rails. I get this error: [Mon Jul 11 12:30:52 2011] [error] [client…
Stephan
  • 1,858
  • 2
  • 25
  • 46
2
votes
1 answer

Python Flask 400 Bad Request Error Every Request

I'm working on a Flask app and recently converted it to a simple blueprint template with only one app. It works fine when in debug mode (FLASK_DEBUG=1), but when it's not in debug mode I get "HTTPStatus.BAD_REQUEST - code 400" no matter what page I…
Drizzit12
  • 169
  • 2
  • 19
2
votes
1 answer

WCF error when sending special characters

I have a simple WCF service that will analyse a raw text extracted from a .pdf or a .doc file. 99% of the uploaded string are ok but in some cases, the server will raise a Bad Request exception The remote server returned an unexpected response:…
The_Black_Smurf
  • 5,178
  • 14
  • 52
  • 78
2
votes
1 answer

how to disable 400 Bad request's message body in Asp.Net Core web API in production environment?

I have an Web API project with lots of the Controllers, Validators, Services and Repositories in asp.net core I am going to disable all the 400 Bad requests message bodies (Validate a Property from a model or ...) on production mode due to the…
2
votes
1 answer

Boost Asio https synchronous call- Error code 400 bad request

we are migrating from http to https boost asio sysnchornous call and I am using the below code to make https synchoronous call with ssl certificate validation. we got our client certificate issued by certiticate authority and we downloaded it in…
2
votes
1 answer

Laravel 7's Http client + xml = Bad request although curl works fine

SO has a lot of questions for cases where a user is getting the desired result with curl but not with php's Guzzle http. In my case I am trying to use the new Httpclient of laravel 7 (essentially a wrapper around Guzzle) in the following…
jharme
  • 166
  • 7
2
votes
2 answers

RubyOnRails: SQL injection causes ActionController::BadRequest which cannot be handled

I am getting SQL-injection url requests such as: ?s=index/think\app/invokefunction&function=call_user_func_array&vars[0]=file_put_contents&vars[1][]=12345.php&vars[1][1]= which is causing a: ActionController::BadRequest (Invalid query parameters:…
Christoffer
  • 2,271
  • 3
  • 26
  • 57
2
votes
2 answers

Unclear Bad Request messages from Asp.Net Core API model binding when there is a JSON parser error (e.g. type mismatch)?

If I send a JSON body with a wrong type (e.g. integer where a string is expected in a model by Asp.Net Core), I get a following message: "$.name": [ "The JSON value could not be converted to System.String. Path: $.name | LineNumber: 1…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
2
votes
1 answer

When i make request to googleapis, getting 400 Bad Request

I am trying to get the list of groups (distribution lists) for a specific user. It is getting failed. Request is `GET /admin/directory/v1/groups HTTP/1.1 Host: www.googleapis.com Content-length: 0 Authorization: Bearer…
2
votes
2 answers

How to fix java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"?

When calling HttpURLConnection.getOutputStream() I get this IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request" Code snippet: public static void main(String[] args) throws MalformedURLException, IOException { …
James
  • 49
  • 1
  • 5
2
votes
1 answer

Python Flask server getting 'code 400' errors (POST request sent from Telegram-webhook)

Context I'm currently following this tutorial. - Telegram Bot with Python Tutorial #3: Creating Bot and Webhook | Project FIRST STEP I have set-up a Flask server using the following python code: from flask import Flask from flask import…
JaFizz
  • 328
  • 2
  • 20
2
votes
0 answers

Catch 400 error in expressJs due to exceed request header

I have a web application written in nodejs and expressjs. My application has many cookies for different businesses, recently i get 400 error because of the length of request header. for every request these many cookies are sent to server. I want to…
jsDevia
  • 1,282
  • 4
  • 14
  • 37
2
votes
3 answers

Getting 400 request from api server

I am working on my android app for which i am using POST request I am getting 400 bad request error I think maybe their is a model class error i am not sure please respond RetrofitInstance public class RetrofitInstance { private static Retrofit…