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

ProcessUserAuthorization returns null, ExchangeUserCredentialsForToken returns 400

I'm trying to authenticate to the Visma Api. (visma.net) using OAuth2. So I've created an authhelper which uses the UserAgentClient to do this. All values in constants are correct. Of course this should be read from a file, but I just tried this…
gcdevs
  • 21
  • 1
  • 3
2
votes
1 answer

Python - flask and werkzeug - Keep giving "BadRequestKeyError: 400 Bad Request: KeyError: 'file'"

I'm trying for the first time to upload file with python, I tried using flask and werkzeug libraries, here is my code: Here I'm creating the function to upload files: @app.route('/upload') def upload_file(): return…
2
votes
2 answers

Getting 400 Bad Request despite catching the err in angular2+

I have designed a login page where login is successful when i put a correct login and password and Login doesn't happen when I put an incorrect username or password which is correct. However, I get this error: POST…
Techdive
  • 997
  • 3
  • 24
  • 49
2
votes
0 answers

Django 400 Bad request after pulling update from Github

I had a working page running Django with channels via Nginx, Daphne, Redis, and Gunicorn. After pulling an update from Github my index page now shows "Bad Request (400)" with nothing helpful in the console except for missing favicon. My settings.py…
2
votes
1 answer

Guzzle Post Using API Key Keeps Resulting in 400 Bad Request

I'm using Guzzle version 6.3 and having issues with my request. I keep getting a 400 Bad Request error and I'm not sure the best approach to debug this or what might be causing the error. When I set this up using Postman and the same criteria all…
user469626
  • 133
  • 2
  • 12
2
votes
1 answer

Firebase.auth error with 400 bad request

I found a strange error while I developing system using Firebase with service url contains user data. User data is below. { "uid": "kt9Hcp2FbYbBvvIeSHHa1RbvHcv2", "displayName": "Anonymous 901", "photoURL": null, "email":…
2
votes
3 answers

mod_evasive not working on Apache 2.4.6

I am trying to configure mod_evasive for Apache 2.4.6 on CentOS, release 7.5.1804. I got clean install of CentOS, with clean install of Apache without serving any pages or anything (just example index.html saying hello world), and I installed…
2
votes
1 answer

Why does Twitter API call work fine in Node.js but result in a 400 Error in ReactJS?

I'm running into a constant issue when developing in ReactJS, which is that my API calls result in 400 Bad Request errors, even though the code works fine outside of ReactJS. Below is (A) code that runs fine locally on NodeJS, and (B) the same code…
2
votes
3 answers

How to integrate Dialogflow v2 with javascript frontend (Vue.js)

I'm trying to integrate Dialogflow with Vue.js (and axios) according to the documentation's sample HTTP request: https://dialogflow.com/docs/reference/v2-auth-setup and detectIntent:…
2
votes
0 answers

http status code error 400: SOAP client in angular 4 with ngx-soap

I am trying to use a SOAP server in angular 4 with the ngx-soap package. However, I am getting a Cross-Origin Request error (no access on the server side but there is no problem and the Access-Control-Allow-Origin is good) and the http status code…
2
votes
1 answer

Newly created .Net Core gives HTTP 400 using Windows Authentication

Following this guide https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.1 I decided to use Windows Authentication on my Web API project. Launching the .Net Core Web API/Site I get a HTTP Error 400. What is the…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
2
votes
2 answers

Magento 2 Apache random 400 errors

Firstly I know how to deploy and work with files, I don't need answers saying 'redeploy static content' or 'clean cache' - experience from the research. We having an issue on our development server. We have tested it with multiple projects, versions…
Macas
  • 560
  • 3
  • 22
2
votes
1 answer

Reset/Remove ErrorDocument via htaccess

I use host that has custom ErrorDocument settings already set in their httpd.conf and I can't edit this file (I don't have access) to solve the problem directly there. Some background: I use an API that when something isn't right I manually set a…
2
votes
1 answer

400 Response for asp.net web api POST request only when cors is enabled

I've been stumped on this one for a few days now. I am a beginner to CORS so navigating this has been very confusing. What's going wrong: I created a asp.net web api which can successfully send POST requests to my SQL database. I have used POSTMAN…
Nick Grover
  • 49
  • 1
  • 8
2
votes
1 answer

400 - Bad request error on POSTing a new record in CRM database using Web API

I am using CRM Web API to perform CRUD operations. Field List Wherever Disabled is set, it is for field security. For POST request when I execute this request with below code, it throws Bad Request error. My code sample is as…