Error map
DecodingError Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted
iOS · layer 1, On your device
Centre: this error. First ring: errors it is linked with (7). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (7)
API Error: Malformed JSON in request body (entity.parse.failed / JSON parse error)
The server couldn’t parse the request body as JSON, so it rejected the request before looking at any field.
System.Text.Json: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0
The response wasn’t JSON — usually an HTML error page, login redirect, or an empty body was passed to the JSON deserializer.
SyntaxError: Unexpected token < in JSON at position 0
`JSON.parse()` / `response.json()` received something that isn’t JSON — very often an HTML error page.
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text passed to json.loads() isn’t JSON — at char 0 it’s usually empty or HTML.
System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $.id
System.Text.Json couldn’t map a JSON value to the target .NET type — e.g. "42" (string) to int, null to a non-nullable type, or w…
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0
Json.NET was given text that isn’t valid JSON — commonly HTML, a BOM, or an already-serialized string.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
Two steps away (18)
HTTP 400 Bad Request
The server could not understand the request because its syntax, headers or body are malformed or invalid.
HTTP 415 Unsupported Media Type
The server refuses the request because the body’s Content-Type isn’t one it accepts.
HTTP 411 Length Required
The server refuses a request with a body but no Content-Length header.
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList` from Object value
Jackson found JSON whose shape doesn’t match the target Java type (object vs array, string vs number, missing constructor).
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "x", not marked as ignorable
The JSON contains a field your Java class doesn’t have, and Jackson is configured to fail on unknown properties.
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class X and no properties discovered
Jackson can’t serialize the class — it has no public getters/fields, or it’s a Hibernate proxy, or Java 8 date types without the…
HTTP 404 Not Found
The server can’t find anything at the requested URL.
HTTP 500 Internal Server Error
The server hit an unexpected condition — usually an unhandled exception or misconfiguration in the application.
TypeError: Failed to fetch / NetworkError when attempting to fetch resource
The browser couldn’t complete the request at the network level — CORS, DNS, offline, blocked mixed content, or the server refused…
HttpMessageNotReadableException: JSON parse error / Required request body is missing
Spring couldn’t read the request body into your @RequestBody object.
SyntaxError: Unexpected end of input
The parser reached the end of the code (or JSON) while still expecting more — a missing } ) ] or empty JSON.
TypeError: Object of type datetime is not JSON serializable
json.dumps() met a type it doesn’t know how to encode (datetime, Decimal, set, custom objects).
TypeError: Converting circular structure to JSON
JSON.stringify met an object that references itself (directly or through children).
npm ERR! code EJSONPARSE — Failed to parse json / Unexpected token in JSON at position
package.json (or package-lock.json) contains invalid JSON.
json_decode() returns null / JSON_ERROR_SYNTAX: Syntax error
The string passed to json_decode isn’t valid JSON, so PHP returns null.
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Swift force-unwrapped (`!`) an optional that was nil, crashing the app.
Illegal instruction (core dumped) (SIGILL)
The program used a CPU instruction your processor doesn’t support — typically AVX/AVX2 in prebuilt binaries (TensorFlow, MongoDB…
The application was unable to start correctly (0xc0000142)
A DLL the program loads failed to initialise — often after an update, with corrupt runtimes, or when a desktop heap/session limit…
Map another error
Popular: 403500400TypeErrorCritical error0xC000007BNullPointerException404