Questions tagged [http-status-code-400]

400 Bad Request. Add this tag to a question if your requests receive this answer.

The request could not be understood by the server due to malformed syntax. The client should not repeat the request without modifications.

See also RFC2616.

806 questions
3
votes
2 answers

Etsy API Image upload error

I have an oauth connection - it works well with all other requests, but one: upload image for listings. Here is the code: $connection = $this->getEtsyConnection(); $imageApiUrl =…
Zoli
  • 1,081
  • 1
  • 8
  • 28
3
votes
2 answers

Spring-Boot : 400 Bad request error even when parameter is present

In the following method there are two parameters childFile and file, I run this call through postman but it gives me 400 Bad Request error when I check the logs it says that parameter childFile is not present, I attach code, error and postman…
SFAH
  • 534
  • 1
  • 8
  • 24
3
votes
0 answers

HTTP REST API File upload gives 400 in windows

I have a REST API for uploading files to server written in Java with Spring Boot. I am testing the API through postman. The API is working fine in Linux Environment, but in windows environment it returns 400 Bad Request as response. There is no…
3
votes
1 answer

AssertionError: 400 != 201 while running TestCase

I am a newbie working with Django. When I run command python manage.py test, I keep receiving the following Error; Tact/tact_api/lines/test_views.py", line 103, in test_api_can_create_an_event self.assertEqual(self.response.status_code,…
3
votes
1 answer

Weird limit on NHTSA batch VIN decode via WinHTTPRequest

I'm encountering a problem (HTTP STATUS 400 Bad Request) using code to decode VINs if I send more than 12, but if I send a list of over 100 by pasting into website, I get results. I'm using following code to send a list of VINs to get back…
Matthew Swaringen
  • 305
  • 1
  • 2
  • 10
3
votes
1 answer

HTTP Status 404 or 400 if no such API endpoint exists?

Status code 400 Bad Request is used when the client has sent a request that cannot be processed due to being malformed. Status code 404 Not Found is used when the requested resource does not exist / cannot be found. My question is, when a client…
3
votes
1 answer

How to create a webhook on a repository on the GitHub web api using AJAX?

I am experimenting with Webhooks in the GitHub api. I got one working by doing it manually as in going into my repository and clicking into the setting and enabling a web hook. But now I want to do this in AJAX and I am getting problems. Anytime I…
DanoBuck
  • 43
  • 1
  • 4
3
votes
0 answers

Invoke-WebRequest, POST failing with (400) Bad Request

Hello Everyone, When I run following Statement, it throws me 400 Bad Request error on production environment but is running fine on my local environment. $uri (url) is different in both cases but doing same task. Invoke-WebRequest -UseBasicParsing …
3
votes
0 answers

django - accessing the development server over HTTPS, but it only supports HTTP

I am using python 3.5 & django 1.10 on windows 7 os. I re-started my laptop today and when I attempt to access my python-django app on my local development server, I now receive the following error: Starting development server at…
user1261774
  • 3,525
  • 10
  • 55
  • 103
3
votes
2 answers

Java - HTTP Post Jira API - Bad Request

I have this code to do a HTTP Post to a Jira URL (https://xxxxxxx.atlassian.net/rest/api/2/issue/): Object jsonMessage = arg0.getMessage().getPayload(); URL url = new URL(jiraUrl + jiraIssuePath); HttpsURLConnection conn =…
gtx911
  • 1,189
  • 4
  • 25
  • 46
3
votes
1 answer

Header 404 vs Header 400: url parsing error

I'm writing my own little php framework. I want to write everything as semantic as it could be, and I'm stacked. I've got an url parsing class. It parse the whole url (scheme, subdomain, domain, resource and query). Next the router class decides…
Jacek Kowalewski
  • 2,761
  • 2
  • 23
  • 36
3
votes
0 answers

How to return a 400 status code, but return an int

I want to do this instead of a null pointer exception in a java method return new ResponseEntity(HttpStatus.BAD_REQUEST); but my method returns an int not a string. The main thing I want to do is return a 400 Status code. What can I do? I…
apkisbossin
  • 336
  • 1
  • 3
  • 16
3
votes
1 answer

Python OAuth Error "Invalid Grant"

I work at a small company whose mail is hosted through Google. As one of the administrators responsible for managing employee accounts I'm attempting to automate some tasks using Google APIs and one or more dedicated service accounts. I wrote the…
3
votes
2 answers

Spring Boot File Upload Bad Request 400

Hello im writing an Webapplication using Spring Boot and AngularJs and need an simple file upload which is not working at the moment. I already read that spring boot should autoconfigure the multipart upload itself when the mvc dependency is…
3
votes
3 answers

Redirect with POST parameters in MVC 4 for Payment Gateway Integration

I am trying to do a payment gateway integration using mvc4 in razor. In that i need to call a page with prefilled post form. Using the below method, I am forming the post method form: private static string PreparePOSTForm(string url,…
MANOJ GOPI
  • 1,279
  • 10
  • 31