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
4
votes
0 answers

instaR http error 400, can't get access token

i've been trying to use instaR, but failed at getting an access token - getting the response: Authentication complete. Error in init_oauth2.0(self$endpoint, self$app, scope = self$params$scope, : Bad Request (HTTP 400). Failed to get an access…
stedogin
  • 61
  • 6
4
votes
0 answers

'400 Bad Request' when post JSON in PostMan but working fine using curl despite setting Content-Type

I am having issues using postman to create the same post request that is working using curl. curl -i -H "Content-Type: application/json" -X POST -d '{"datURL":"INSERT_BASE_64_HERE"}' http://localhost:5000/api Here are my settings for postman and…
4
votes
2 answers

HTTP Post Request returns 400 C#

I am trying to make a http post request to obtain an api token. If successful, it is supposed to return string values of access token, token type (bearer) and expires_in. The code I have is a generic one which I was expecting to see working. But…
4
votes
0 answers

Why would I get a "503 - Service Unavailable" error when the service is available?

According to this, a 503 error is "503 Service Unavailable The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state." Yet that doesn't seem to be the case for me. I have a Web API…
4
votes
1 answer

What causes Jetty BadMessage: 400 No Host?

I'm runny Jetty 9.0.6.v20130930 via Maven with the command mvn jetty:run. Looking through my server logs, every couple of days I'm getting this message: 2014-01-28 00:57:47.659:WARN:oejh.HttpParser:qtp975361377-71: BadMessage: 400 No Host for…
pail
  • 193
  • 4
  • 10
4
votes
1 answer

HTTP 400 error in REST web service during POST with FormParam containing own objects (e.g. enities)

For an ordering process in my REST service I have to send a list of "articles" from client to server. These article objects are of a self-made entity type. I already found out that sending a list of STRING or INTEGER objects does work, sending it…
Jana
  • 266
  • 3
  • 5
  • 18
4
votes
1 answer

Save 400 error in Safari only

I am calling save() on a Backbone model. This works in every version of every browser I have tried except Safari and Safari on iOS. In those 2 browsers the call fails before hitting the server with a 400 Bad Request error. The call looks like…
Mike Fielden
  • 10,055
  • 14
  • 59
  • 99
3
votes
3 answers

Failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request - OAuth 2.0 POST

I am working with YouTube APIs for my college project, and I keep getting an error. Here I send them to the authorisation page to log in, when they allow access it sends the $_GET['code'] string back. Then I send this along with some other data and…
3
votes
2 answers

What is the proper configuration for a WCF 4 REST service?

Sorry to post about this, but it's driving me nuts. I am using routes in the WCF4 REST template in VS2010. I set the maxreceivedmessagesize property to some gargantuan number, and it still gives me an HTTP status code 400 when I try to submit xml…
jdb1a1
  • 1,045
  • 1
  • 13
  • 32
3
votes
1 answer

Facing issue with authorizing a Google Script I created

I have created a Google Scripts project that helps me manage my emails via labels and archiving. Through the interface at https://script.google.com/ I created an automatic trigger which worked like a charm for years! But it suddenly stopped working,…
3
votes
2 answers

HttpURLConnection GET request getting 400 Bad Request

I am trying to do a GET request with some parameters in Java using HttpURLConnection. Everytime I do this however, I get a 400: Bad Request each time. What do I need to change to make it work? String url =…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121
3
votes
1 answer

Azure ASP.NET Core POST 400 bad request Blazor Webassembly

I have been trying to deploy my asp.net core hosted blazor webassembly app on Azure App Service, however, I am having trouble getting the api to work. When I try and save a user's data in the database, I get a 400 bad request error. It works fine on…
3
votes
1 answer

http status code 400 in middle east countries

I have an iPad app which loads a plist from a server fine on a UIWebView but when I try to get it as response string from the server, it returns a http status code 400 with response string as Request Error (invalid_request). It happens only in…
random
  • 10,238
  • 8
  • 57
  • 101
3
votes
1 answer

Groovy URLConnection getting the response for 4xx responses

I have a Groovy script that uses URLConnection to process a GET request (in this case it's to get an authentication token); URLConnection loginURI = new…
Slimy43
  • 341
  • 4
  • 17
3
votes
1 answer

libcurl HTTP response message on 400 error

I'm sending an incorrect URL to a POST request via libcurl in C code. The server sends back a 400 along with a response containing detailed information about why the request was rejected. in libcurl i can see the error code: res CURLcode …
jmer
  • 371
  • 2
  • 12