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
3
votes
2 answers

GraphQL/ Rails 422 Unprocessable Entity - Saving token to Session

I’m currently working on changing the rails backend of a project from REST to graphql and I’m running into an error with authentication following their tutorial - https://www.howtographql.com/graphql-ruby/4-authentication/ I’m using the GraphiQL…
Pio
  • 31
  • 1
  • 4
3
votes
1 answer

Validating forms with axios vuejs and laravel

I'm trying to send some form data to my backend, but validation with Laravel isn't returning errors with 422 status. Axios Simple axios post request to a URL and looking to get a response back if we catch an error during request…
sogeniusio
  • 111
  • 3
  • 14
3
votes
0 answers

laravel phpunit withexceptionhandling

I'm in the process of writing a web app using Laravel 5.5 and Vue.js. PHPUnit version is 6.3.1. I'm testing for validation errors when a user registers using Form Requests. Route: // web.php Route::post('/register',…
3
votes
1 answer

How to determine what fields are required by a REST API, from the API?

I'm working with a networking appliance that has vague API documentation. I'm able to execute PATCH and GET requests fine, but POST isn't working. I receive HTTP status error 422 as a response, I'm missing a field in the JSON request, but I am…
LampShade
  • 93
  • 2
  • 11
2
votes
1 answer

Unable to validate list of dicts using marshmallow Schema with webargs use_kwargs - Error 422 Unprocessable Entity

I have the following endpoint in Flask: from flask import Flask from marshmallow import EXCLUDE, Schema, fields from webargs.flaskparser import use_kwargs app = Flask( __name__, static_url_path="", static_folder="static",…
vvvvv
  • 25,404
  • 19
  • 49
  • 81
2
votes
2 answers

StatusCode: 422 - UnprocessableEntity Entity - HTTP Client .NET Core 5.0

I have the below code to make an HTTP request to an external endpoint, which throws me a 422 status code which is Unprocessable Entity. The same request payload works fine when directly invoked the external URL using Postman. using (HttpClient…
Lakshitha
  • 128
  • 1
  • 13
2
votes
1 answer

Google Script using an API cURL Request and getting a 422 Response code

My coding knowledge is pretty shaky because I didn't learn it orderly. Right now, I am trying to send an cURL Request and the documentation is: curl https://api.at356.com/studio/v1/sd-large/complete -H 'Content-Type: application/json' -H…
2
votes
2 answers

Posting with Symfony 4.4 HTTP Client not working, status code 422

I want to post info to external api but I get error 422 all the time. Geting info and authorization works fine. I'm using Symfony Http Client, authorization and headers are defined in framework.yaml for now. Api documentation fragment: curl…
2
votes
1 answer

Problems with the Bitly API v4 and the Python (2.7) request module, i keep getting response code 422: UNPROCESSABLE_ENTITY

I've been trying to get this to work for the past 4 hours with no luck, so here's the problem: I have this class: class Bitly: def __init__(self, api_token): self.apiToken = api_token self.header = {'Content-Type':'application/json', …
2
votes
1 answer

Creating GitHub pull request from Android Studio gives error

I am attempting to create a pull request from Android Studio. I have edited a file, commited the file, and then when I click Create pull request it tries to create it and I receive the error below: Can't Create Pull Request Can't create pull…
James
  • 1,928
  • 3
  • 13
  • 30
2
votes
1 answer

Generating the Error Page for a 422 Error

I'm currently generating dynamic error pages for 500 and 404 errors. I want to expand this to 422 errors. Here's what we have so far. config/application.rb config.exceptions_app = self.routes controllers/errors_controller.rb class ErrorsController…
thank_you
  • 11,001
  • 19
  • 101
  • 185
2
votes
1 answer

Is a simple password typo really an HTTP error?

It's obvious that some form POST requests should result in a 4xx HTTP error (e.g. wrong URL, lacking an expected field, failing to send an auth cookie), but existing questions like this seem to suggest that all invalid form submissions should be…
Steve Clay
  • 8,671
  • 2
  • 42
  • 48
1
vote
1 answer

Why does a ValidationError 422 occur when sending a POST request to a FastAPI app through Postman?

I cannot seem to send a POST request to a FastAPI app through Postman. FastAPI version 0.89.1 Python version 3.10.9 from fastapi import FastAPI from fastapi.params import Body from pydantic import BaseModel app = FastAPI() class…
Ari
  • 23
  • 6
1
vote
0 answers

Creating new shopify article with the same content gives errors

Following is my code and struct for creating shopify articles. I never had a issue with them until recently where some of the pages get created and others send a 422 Unprocessable Entity response. can someone help me sorting this out as i dont see…
Sp3LLingzz
  • 303
  • 1
  • 3
  • 14
1
vote
0 answers

Logs on server side for pydantic type inference in FastAPI

As is the general case with FastAPI, if a request doesn't correspond to the Pydantic model we get a 422 Unprocessable entity error and the response is visible on the client side. Is there a way to get the log this on the server side? example: class…
Abinav R
  • 365
  • 2
  • 16