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

Getting 422 from server - am I passing JSON object wrongly?

I am working on a React project that pushes data to a node.js server running on localhost. The actual code is here: task = {text:e.target.value}; console.log(task.text); task = JSON.stringify(task); console.log(task.text); …
Faire
  • 706
  • 1
  • 9
  • 31
1
vote
1 answer

gem "rack-cors" not working and request from angular client to rails api throwing cors error

I am struggling to get gem "rack-cors" to work locally. I have bare rails setup with gem 'devise_token_auth' and angular 7 client with 'angular-token' for auth. But every request from angular is throwing cors error. I have configured rails and…
quazar
  • 570
  • 4
  • 14
1
vote
0 answers

Using searchtweets API, twitter api keeps returning 422 error

I am trying to retrieve historical data using searchtweets API but I keep getting twitter 422 error. Weird thing is, before this code I had a previous code where it had worked perfectly. But after this, the old code doesn't work either I have…
Tanmim Hanifa
  • 73
  • 1
  • 1
  • 9
1
vote
1 answer

Post condition check http status

Using a following API: feed?url=XXX Validations performed on the parameter url: If missing: 400 Bad Request If empty/invalid URL: 422 Unprocessable Entity If URL don't point to a valid RSS/Atom feed: 422?? What status error should be returned for…
Kakawait
  • 3,929
  • 6
  • 33
  • 60
0
votes
0 answers

422 status code when sending valid data, API with Flask, SQLAlchemy

I am building Library API project, and my code used to work just fine, but recently - when I aimed to finish working with it - I was checking my endpoints, and this is what I get when sending POST request: { "book_id":1, "client_id":2, …
0
votes
0 answers

422 Error when do post request of NGINX proxy

I have set up an simple reverse proxy for http://github.com with config server { listen 80; location / { proxy_pass https://github.com; } } When I go to localhost it display the github ui but when I try to login to github with the…
0
votes
0 answers

Query FastAPI with python requests returns 422 unprocessable entity

I am trying to reach a fastAPI endpoint using the python requests, however, any request always returns a 422 Unprocessable Entity error. I have looked at other similar posts, such as this one, but to no avail. No matter if I send the request_dict as…
0
votes
1 answer

Unable to create fulfill request and accept request for order

I am trying to fulfill a shopify order using shopify-api-node library. First I get a list of fulfillment order using const test = await shopify.order.fulfillmentOrders(5333711388952) which gives me [ { id: 6278164939032, shop_id:…
0
votes
0 answers

commerce.js fulfillment method

I'm working on the ecommerce project and I get this response Validation/missing fields index.js:1 fulfillment.shipping_method: The shipping method field is required Here is what my orderData looks like const orderData={ …
ronan23
  • 13
  • 5
0
votes
0 answers

Test with FastApi TestClient return 422 Unprocessable Entity

I'm trying to run the following test with TestClient FastAPI on following endpoint. I'm getting 422 Unprocessable Entity def test_nodes(): """ this test assumes a specific id scheme, which is subject to change """ response =…
d151
  • 11
  • 4
0
votes
1 answer

Api github return 422 Unprocessable Enty when the data is passed

I try to send file to my github repo via a html process but I fail with the error 422. I have the feeling than my data is good but... nooooo. I'm beginner in this part and I don't find a way to solve my problem. In this article…
Knupel
  • 323
  • 2
  • 14
0
votes
0 answers

error 422 from ajax request on dynamic form Symfony

I try to put a specific value into my form from the user's choice thanks to js. When he selects a client i want to display the relevant contract and structure that are related to it in a choice field, but i always get the "422 Unprocessable entity"…
0
votes
0 answers

Getting 422 (unprocessable entity) error while sending data from React to Mongodb

I am getting 422 (Unprocessable Entity) error when I send form data form React to Mongo DB through Node.js (it's a MERN project) The error looks like SignUp.jsx:24 POST http://localhost:3000/signup 422 (Unprocessable…
0
votes
0 answers

Postman post request field must not be empty

{"active":true,"name":"webhook","resource":{"type":"CONTACT"}} I'm sending this in raw body in postman but getting this eror "status": 422, "errors": [ { "field": "resource.desks", "cause": "must not be…
0
votes
0 answers

How to pass in to add two query when curling in prometheus?

I am trying to curl a query from my client that has data, but it seems the query i am sending doesn't seem to be correct. I want to get the number of commits that two projects have over a span of a year, but when I am adding the two I am getting a…