Questions tagged [http-status-code-422]

Unprocessable Entity

The server understands the content type of the request entity (hence a 415 Unsupported Media Type status code is inappropriate), and the syntax of the request entity is correct (thus a 400 Bad Request status code is inappropriate) but was unable to process the contained instructions.

99 questions
1
vote
0 answers

Publishing to Pypi from gitlab: 422 Unprocessable Entity

I'm trying to push a project package to pypi (it's my first time doing so) from gitlab, and I'm following their turorial [here][1]. However, when I am trying python3 -m twine upload --repository gitlab dist/* the console returns me HTTPError: 422…
Willy Lutz
  • 134
  • 1
  • 1
  • 9
1
vote
2 answers

Webhook listener in FastAPI raises 422 Unprocessable Entity error

I have a webhook listener that uses an APIRouter to designate the route for the application on the FastAPI server. The app should receive a POST request (expecting data in JSON format) and log this to the console. However, I am getting consistent…
1
vote
0 answers

I get user, volunteer, and event must exist, when I try to post a student as json data in postman to my rails backend student table

I don't understand why I am getting a 422 on http request, I feel I put all parameters I needed into my request, cant someone tell me what is wrong with this cond. this is my controllers trusted parameters # Use callbacks to share common setup…
1
vote
0 answers

Post method returns 422 using Requests but working fine with CURL and Postman

I am using Python with Requests module to connect to an EasyRedmine API. I'm having trouble creating a project using the post method in order to post a JSON. It returns "[Unprocessable Entity ]". I have tried the same request using…
1
vote
1 answer

How to customise error response for a specific route in FastAPI?

I want to make an HTTP endpoint in FastAPI that requires a specific Header, produces a custom response code when the Header is absent, as well as shows the Header as required in the OpenAPI docs generated by FastAPI. For example, if I make this…
Rob Gilton
  • 401
  • 4
  • 16
1
vote
0 answers

422 (Unprocessable Entity error when submitting form with ajax)

Why do I get error 422 when I send the form to Laravel with Ajax? my ajax code : document.getElementById('addReplyComment').addEventListener('submit',()=> { $.ajax({ type: 'POST', url: "{{ route('comments.reply')}}", …
1
vote
2 answers

How to fix error 422 on axios post request?

I am trying to populate a already built php database using axios requests, however i keep receiving 422 error and I don't understand what I am missing. Could you please help me :) This is the error that i get: xhr.js:177 POST URL/data 422…
Anad Dana
  • 81
  • 3
  • 10
1
vote
1 answer

Failing to send 404 HTTP status on Flask when client tries to get a nonexistent element

In a Python/Flask application, I have defined this endpoint that I expect to return 404 if a client tries to get an id that doesn't exist on my database. For example: @app.route('/plants/', methods=['GET']) def get_plant(plant_id): …
1
vote
1 answer

quickblox react-native-sdk

I was trying to create a dialog using quickblox react-native-sdk. In ANDROID it worked perfectly fine, but in IOS(simulator) it is showing Error: Request failed: client error (422) QB.chat .createDialog({ type:…
Boban Anto
  • 31
  • 3
1
vote
1 answer

HTTP Status Code 400 or 422 if data type mismatched for a request value?

HTTP Status Code 400 or 422 if data type mismatched for a request value? Is it correct to use 400 in below cases or 422 should be used instead? A String value received in header, path or query parameter where an Integer is expected A String value…
1
vote
0 answers

react-native send image form data success with emu but error 422 on real device

so this is my problem : my code just returning error 422 when send data from real devices, but doing good on emulator here is my form data code : const data = new FormData(); data.append('approval_store_code',…
1
vote
1 answer

Getting a 422 Error on Post request, but I think my request is being sent correclty

I have to make a POST request, to an API that was given to me. I am supposed to send some data to it and get back an JWT token. The data i have to send is an object called data like this: { "firstName": "Jane", "address": "Lohmühlenstraße…
user2643810
1
vote
1 answer

422 Error returned correctly in Postman but not in Angular 8 HTTPClient Post Request

I'm testing a simple Login API Call in Angular 8. When I use the correct credentials the post works fine and I'm logged in. When I test the call with invalid credentials, I'm not seeing the correct error response in Angular. When I test the call…
Richard Shergold
  • 572
  • 1
  • 8
  • 21
1
vote
1 answer

Why I receive 422( Unprocessable Entity) error when trying to POST data to API using vanilla JS?

I have a task to do with pure JavaScript and I came up to a problem when writing data to API file. This is what I wrote: document.getElementById('btn').addEventListener("click",function (event) { event.preventDefault(); var countryName =…
Ali G.
  • 13
  • 1
  • 6
1
vote
0 answers

Laravel 422 (Unprocessable Entity) while records are matching

I have a Laravel back-end and Vue front-end. In my login component I make an axios call to my login web route: window.axios.defaults.headers.common = { 'X-Requested-With': 'XMLHttpRequest', 'X-CSRF-TOKEN' :…
Baspa
  • 1,099
  • 1
  • 18
  • 49