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
-1
votes
1 answer

How do I fix a HTTP Error 400: Bad Request in python3?

I am trying to access checkpoint firewall by using it's API but for some reason I am getting HTTP Error 400: Bad Request, I have never had this before. Any ideas? Here is my code: import json import ssl import urllib.request, urllib.parse,…
-1
votes
1 answer

emailJS POST https://api.emailjs.com/api/v1.0/email/send 400 reactjs

I have this problem 400. I use Emailjs i put the good id but form doesn't send. I don't understand why.I think is the problem with emailjs.min.js error index.html email Thank you for yours answers
-1
votes
1 answer

Axios returns a response code of 400 when making Basic Authentication

I am trying to get an acesss token from an api endpoint in postman using the basic authentication flow. app.post('/epic', async (req:Request, res) => { const code = req.query.code as string const url =…
Mhd
  • 817
  • 1
  • 8
  • 21
-1
votes
1 answer

400 error when trying to send post request with image through angular

I am trying to send a post request through an angular UI that I built but I get the following error: core.js:6456 ERROR HttpErrorResponse {headers: HttpHeaders, status: 400, statusText: "OK", url: "http://localhost:8080/upload", ok: false,…
-1
votes
2 answers

how to find if the user's mail id, name, password already exists in android ? for sign in functionality

how to find if the user's mail id, name, password already exists in signin functionality. I checked that it shows 400 bad request if the user giving same name, mail, password. so now how to display it in toast that user is already registered. I…
-1
votes
3 answers

Postman Bad Request Error When There Is No Syntax Error

I have been trying to send a post request to my server on Postman. But I have been getting the 400 Bad Request Error. The description of the error says "The request cannot be fulfilled due to bad syntax." However, my JSON body does not have any…
Stacking_Flow
  • 115
  • 1
  • 1
  • 11
-1
votes
2 answers

React Native why given cors error in actions when i use django rest framework api on localhost

I am using react native app with api. API coded by django rest framework. I run api in localhost:8000. When i try connect to api with axios i get cors proplem. I added django-cors-header but also it didnt work. Can someone solve it?…
-1
votes
2 answers

I want to return status code of 400 instead of 500 about unhandled exceptions, globally

I am trying to make 500 Internal Server Error to 400 Bad Request in every cases. This is my package structure for exceptions. For example, ConflictExeption looks like this. @ResponseStatus(HttpStatus.CONFLICT) public class ConflictException extends…
-1
votes
1 answer

OAuth Error 400: invalid_request Missing scheme: /login

I am trying to use OAuth in my app and I am getting the following error after clicking the login button to be redirected to the generated url. However, I am getting the following error but I'm pretty sure that I have my URI's configured correctly in…
A Webb
  • 633
  • 1
  • 8
  • 16
-1
votes
1 answer

Getting a 400 Bad Request error when trying to call PATCH endpoint on .Net Core 3.1 Web API

I'm getting a 400 Bad Request when trying to calling a PATCH endpoint on my Web API (.Net Core 3.1) and I cannot figure out why. My action method looks like this: using Microsoft.AspNetCore.JsonPatch; namespace PropWorx.API.Controllers { …
-1
votes
1 answer

fetch function returns 400 bad request error for content-type 'application/x-www-form-urlencoded'

This question has been asked before but those solutions i have already tried and i shall explain along the way. Task: I want to send data to api with content-type as "application/x-www-form-urlencoded". Problem: The URL works fine in Postman and…
Rafay Zia Mir
  • 2,116
  • 6
  • 23
  • 49
-1
votes
1 answer

posting base64 jpg cause cors error and 400 error

I'm trying to send a base64 encoded jpg file to the nodejs server. I get a generic CORS error 'Multi-origin request blocked (cross-origin): the source matching criterion does not allow the remote resource to be read from http: // localhost: 8080 /…
user11751709
-1
votes
1 answer

AJAX post url returning 400 (bad request)

I'm using some simple AJAX page transition on a Craft CMS site, very similar to these instructions: https://designbycosmic.com/journal/craft-cms-ajax-page-transitions-with-history-pushstate The basic structure of my code is this: $.ajax({ type:…
Benek Lisefski
  • 159
  • 1
  • 3
  • 13
-1
votes
1 answer

jQuery ajax method not accepting PlainObject as data

I have the following code: $.ajax({ method: "POST", url: "/handler", contentType: "application/json", data: data_all, }) .done(function(r) { ...stuff... }) .fail(function(r) { ...stuff... }); data_all is a dictionary (e.g.,…
eykanal
  • 26,437
  • 19
  • 82
  • 113
-1
votes
1 answer

I get 400 bad request from some websites but not others with HEAD request

I am making a banner grabber and have finally ironed out the HEAD / HTTP/1.1 request according to the guidelines, but some websites still give me '400 Bad Request' why is that? Here is my request: "HEAD / HTTP/1.1\r\nHost: target:port\r\nConnection:…
Jonah Fleming
  • 1,187
  • 4
  • 19
  • 31
1 2 3
53
54