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

Jsoup send 400 bad request

when i try to connect (i want parse some site) with proxy, i get Document (i use jsoup) like: HTTP/1.1 400 Bad Request here is my code in java: String startUrl = "http://mp3u.club/novye_pesni"; …
Anton Mironov
  • 83
  • 2
  • 7
2
votes
1 answer

HTTP GET request returning 400 response code

I'm working on a simple API for a few projects but when I make a GET request from the application it returns a response code of 400. Any help in fixing the issue will be greatly appreciated. My Code: URL oracle = new URL(URL+"SELECT `name`,…
2
votes
1 answer

Custom error message with HTTPStatusCodeResult not working on localhost

I have a controller action that returns a 400 if validation fails: return new HttpStatusCodeResult(HttpStatusCode.BadRequest, "My custom message"); When running locally I get the standard "400 Bad Request", instead of the expected "400 My custom…
2
votes
1 answer

File Upload Angular2 via multipart/form-data, 400 Error

I need to upload a file together with some meta info via multipart/form-data like this: Header ----boundary Meta ----boundary File ----boundary For some reason I always get a 400 Error, the Backend server tells me, that the Meta-Field is missing.…
2
votes
0 answers

Java - JSoup - HTTP error fetching URL. Status=400

While getting results from duckduckgo.com with different queries, after 20-30 iterations, i get this exception: Exception in thread "main" org.jsoup.HttpStatusException: HTTP error fetching URL. Status=400, URL=https://duckduckgo.com/html/?q= …
2
votes
1 answer

Python '_AppCtxGlobals': Attribute Error in Flask

I have implemented a code to calculate api time. @api.app.before_request def before_request(): g.request_start_time = time.time() @api.app.after_request def after_request(): elapsed = time.time() - g.request_start_time ------> Error…
Sunny Jain
  • 514
  • 2
  • 15
2
votes
1 answer

how to catch 400 bad request error in HTTP response in angular2

I try to catch error 400 bad request like this: catch((error: any) => { if (error.status === 500) { return Observable.throw(new Error(error.status)); } else if (error.status === 400) { console.log( 'error' ); …
2
votes
2 answers

Umbraco 7.6.1 Upgrade Login Issue - 400 (Bad Request)

After Upgrading from Umbraco 7.5.3 to 7.6.1 I have become unable to log in to the backoffice as an admin. I have checked in the Users Database and userDisabled & userNoConsole are both 0, My Username, UserLogin & UserEmail are all the same, And I…
2
votes
1 answer

Walmart API POST failing with 400 Bad Request (inventory feed) ARCA

I am having problems with a POST request to the Walmart Marketplace API for bulk data exchange and am hoping for some help. Background: I have been successful in writing signature authentication routines, and can successfully execute GET commands…
Nate M.
  • 822
  • 6
  • 14
2
votes
1 answer

AngularJS 400 bad request don't give any response

I've searched on Google and stack overflow about similar / even same problems. But I'm new to this none of them gives me any idea of how can I fix up my code. So, here is my script: $http.post('/authlogin', { email: $scope.userdata.email, …
Sukanta Paul
  • 784
  • 3
  • 19
  • 36
2
votes
1 answer

Scrapy POST request not working - 400 Bad Request

I am moving from python's requests library to scrapy, and I am having problems making a simple POST request. I am setting headers and payload as such: headers = { 'Accept':'*/*', 'Accept-Encoding':'gzip, deflate, br', …
2
votes
1 answer

Getting HTTP error 400 Bad Request - Invalid URL when trying to update SharePoint field

I am trying to update a field inside a Sharepoint document library using Apache HTTPClient, but keep getting HTTP error 400 - Invalid URL. The code and the output is as mentioned below. Please advise why this is happening public static boolean…
Puneet
  • 117
  • 11
2
votes
1 answer

Django/Sendgrid Form HTTP Error 400: Bad Request

I'm getting an HTTPError: HTTP Error 400: Bad Request error when I try to send my Django form using Sendgrid. I have confirmed that there is a Sendgrid key in the envvars. Here is my code: settings.py # sendgrid EMAIL_BACKEND =…
kbdev
  • 1,225
  • 1
  • 13
  • 33
2
votes
1 answer

Django Homepage 400 when debug=False

So my app works fine in the development server when Debug=True, however, when I switch it to False, my homepage is giving me back a 400 back. I have some endpoints which return json and they work fine regardless of the debug value. I'm using Django…
heliotrope
  • 349
  • 2
  • 17
2
votes
1 answer

How to fix while make a POST in Python?

I kept getting in my terminal while running the script. I have tried import requests import json url = 'http://172.19.242.32:1234/vse/account' data = '{ "account_id": 1008, "email_address": "bhills_4984@mailinator.com", …
code-8
  • 54,650
  • 106
  • 352
  • 604