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

Getting 400 Bad Request while calling RestAPI in eclipse, but working in Postman

I have a function which takes 2 input - JSON filepath RestURL After calling the function, it should return the output as JSON. But the problem here, it is throwing 400 Bad request error. Below is the log of error which i am getting - Error Log…
2
votes
0 answers

Fetching data in Insomnia works when I try to implent the same code into my Frontend it shows 400 Bad Request

I try to fetch some data from an API, I need to authenticate myself with a Bearer Token. When I test my calls to the API with Insomnia or https://reqbin.com/ It works without any problems, when I try to implement the exact same code in my frontend…
2
votes
1 answer

Firestore query abnormally slow compared to other queries, sometimes fails

I am performing a firebase query in order to get tickets in a bugtracker app that belong to a specific project. When I load the page that uses this query, the data sometimes loads the data, and sometimes fails to load the data with this error…
2
votes
0 answers

Redirect URI mismatch, why?

Following the directions here using latest/last python 2.7: https://github.com/youtube/api-samples/tree/master/python For the https://github.com/youtube/api-samples/blob/master/python/retrieve_reports.py script Google oAuth explorer tests seem to…
2
votes
2 answers

Asp.net Core 3.1 Web Api return custom error message from IActionResult

Is it possible to return custom error messages to client from Asp.Net Core 3.1 Web Api? I've tried a few different things to set the "ReasonPhrase" with no luck. I have tried using StatusCode: return StatusCode(406, "Employee already exists"); I…
2
votes
3 answers

How do I debug a 400 Bad Request error with DotNetOpenAuth?

I'm using DotNetOpenAuth to connect to the LinkedIn API. I am getting a (400) Bad Request when trying to call the BeginAuthorize method in their API. What am I doing wrong? I'm using Windows 7 and the firewall is disabled.
Sarathy
  • 442
  • 2
  • 9
  • 20
2
votes
1 answer

Heroku Request blocked

in my application (deployed in Heroku), there is a request (GET) that is blocked in the infrastructure layer, the request does not get to execute the code of my application. It returns an error status=400 and connect=0ms and does not carry any…
2
votes
2 answers

400 BAD Request while http.post() in flutter

I am created heroku web app which accepts district, season, min_temp, max_temp as bodyParms in POST request which returns a JSON with single object crop. URL https://agrocare-api.herokuapp.com/predictCrop It works completely fine with POSTMAN, You…
vishnuvreddy
  • 23
  • 1
  • 4
2
votes
0 answers

GraphQL works on Postman, but not on React - using Django API

When I try to query my API on React, I am getting a 400 Bad Request, however I am able to make the same queries fine on Postman (browser and interface version). I don't get any error message so it seems impossible to troubleshoot. Does anyone know…
2
votes
1 answer

400 Error when requesting a token from Discord API

I'm trying to create a login process with Discord's API. Per the documentation I'm suppose to use the code returned on the callback URL to make another call to receive the access token. I've followed the instructions here. However, I keep receiving…
SReca
  • 643
  • 3
  • 13
  • 37
2
votes
0 answers

Getting Error400 when signing into Strapi admin panel

I have a strapi cms which I use for fetching. Today I ran npm run develop to start the server, and it needed be to login. No big deal, I logged in with my credentials, and it says wrong credentials. I tried the 3 passwords I use, but none of them…
user14213262
2
votes
1 answer

Gomail v2 dial tcp: i/o timeout

i'm using gomail v2 to send email to my member and then using docker to run my service. but when i hit the api that host my sendemail function i get this error dial tcp: i/o timeout here's my code func (cc *UserController) ForgetPassword(ctx…
2
votes
2 answers

LinkedIn Video Analytics API - timeRange invalid

Using the linkedIn Video Analytics API, I want to gather analytics about my video post per day. My request:…
SuzanneB
  • 23
  • 3
2
votes
1 answer

Getting trouble accessing tumblr API using Apps Script

I am trying to post to tumblr using Google Apps Script. I have learnt Tumblr uses OAuth V1. To get an idea and to test the API I copied the GSuiteDevs Apps Script OAuth1 Twitter Sample code available at Github. I have suitably modified wherever…
user13355752
2
votes
1 answer

React native post image to server Required request part 'file' is not present

There is no problem with sending photos from Postman. header is ---> 'Content-Type':'application/x-www-form-urlencoded' body is ----> form-data , {file : image..} Sending headers to x-www-form-urlencoded or multi-part/form-data does not…