Error map

Enum init(rawValue:) returns nil / Cannot initialize enum from value DecodingError.dataCorrupted: Cannot initialize Status from invalid String value "pending_review"

iOS · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). 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.

Enum init(rawValue:) returns nil / Cannot initialize enum from value — DecodingError.dataCorrupted: Cannot initialize Status from invalid String value "pending_review" (iOS)Enum init(r…Cannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert valu…unable to type-check this expression in reasonable time — Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions (iOS)unable to type-chec…Could not cast value of type — Swift: Could not cast value of type 'X' to 'Y' (iOS)Could not cast valu…Type of expression is ambiguous — Swift: Type of expression is ambiguous without a type annotation (more context) (iOS)Type of expression …Main actor-isolated — Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races (iOS)Main actor-isolatedIndex out of range — Swift: Fatal error: Index out of range (iOS)Index out of rangerequires explicit use of 'self' — Swift: Reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit (iOS)requires explicit u…Escaping closure captures mutating 'self' — Swift: Escaping closure captures mutating 'self' parameter (iOS)Escaping closure ca…DecodingError — Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted (iOS)DecodingErroris only available in iOS x or newer — Swift: 'X' is only available in iOS 16.0 or newer (iOS)is only available i…DecodingError.dataCorrupted: The given data was not valid JSON — Error Domain=NSCocoaErrorDomain Code=3840 "Unable to parse empty data." / dataCorrupted (iOS)DecodingError.dataC…Type does not conform to protocol — error: Type 'User' does not conform to protocol 'Decodable' (iOS)Type does not confo…AttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorClassCastException — java.lang.ClassCastException: class A cannot be cast to class B (Java)ClassCastExceptionTS7016 — TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type. (Node.js)TS7016CS0246 — error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?) (.NET)CS0246CS0103 — error CS0103: The name 'x' does not exist in the current context (.NET)CS0103CS1061 — error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found (.NET)CS1061Unexpectedly found nil — Fatal error: Unexpectedly found nil while unwrapping an Optional value (iOS)Unexpectedly found …Illegal instruction — Illegal instruction (core dumped) (SIGILL) (Linux)Illegal instruction0xC0000142 — The application was unable to start correctly (0xc0000142) (Windows)0xC0000142CS8618 — warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable (.NET)CS8618declared and not used — Go: declared and not used: x / "fmt" imported and not used (Go)declared and not us…E0308 — Rust: error[E0308]: mismatched types — expected `X`, found `Y` (Rust)E0308Publishing changes from background threads — SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread (iOS)Publishing changes …Main Thread Checker — Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout] (iOS)Main Thread Checkerall goroutines are asleep - deadlock — Go: fatal error: all goroutines are asleep - deadlock! (Go)all goroutines are …Index was out of range — ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection (.NET)Index was out of ra…Stack overflow — .NET: Stack overflow. / Process is terminated due to StackOverflowException (.NET)Stack overflowEXC_BAD_ACCESS — Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) (iOS)EXC_BAD_ACCESSCannot find 'x' in scope — error: Cannot find 'viewModel' in scope (iOS)Cannot find 'x' in …Cannot assign to value: 'x' is a 'let' constant — error: Cannot assign to value: 'count' is a 'let' constant (iOS)Cannot assign to va…Actor-isolated property can not be referenced from a non-isolated context — error: Actor-isolated property 'items' can not be referenced from a non-isolated context (iOS)Actor-isolated prop…Capture of non-sendable type in @Sendable closure — warning: Capture of 'self' with non-sendable type 'ViewModel' in a `@Sendable` closure (iOS)Capture of non-send…'self' captured by a closure before all members were initialized — error: 'self' captured by a closure before all members were initialized (iOS)'self' captured by …IBOutlet is nil (Unexpectedly found nil while implicitly unwrapping) — Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: self.label (iOS)IBOutlet is nil (Un…SyntaxError: JSON — SyntaxError: Unexpected token < in JSON at position 0 (JavaScript)SyntaxError: JSONJSONDecodeError — json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) (Python)JSONDecodeErrorentity.parse.failed — API Error: Malformed JSON in request body (entity.parse.failed / JSON parse error) (API)entity.parse.failedNo such module — Swift: No such module 'X' (module not found) (iOS)No such moduleThe iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0 — warning: The iOS deployment target is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0 (iOS)The iOS deployment …NavigationView deprecated / NavigationLink warning — 'NavigationView' was deprecated in iOS 16.0: use NavigationStack and NavigationSplitView instead (iOS)NavigationView depr…CDN: trunk URL couldn't be downloaded — [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/... (iOS)CDN: trunk URL coul…NSURLErrorDomain Code=-1001 — Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." (iOS)NSURLErrorDomain Co…type 'Null' is not a subtype of type 'String' — Dart: type 'Null' is not a subtype of type 'String' in type cast (Flutter / Dart)type 'Null' is not …fatal: protocol error: bad pack header — fatal: protocol error: bad pack header (Git)fatal: protocol err…Missing return in a function expected to return — error: Missing return in a function expected to return 'Int' (iOS)Missing return in a…Missing argument for parameter / Extra argument in call — error: Missing argument for parameter 'id' in call (iOS)Missing argument fo…

Directly related (12)

Cannot convert value of typeiOS

Swift: Cannot convert value of type 'X' to expected argument type 'Y'

The value’s type doesn’t match what the function or property expects.

unable to type-check this expression in reasonable timeiOS

Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

A long expression (often in a SwiftUI body) has too many possible type combinations for the compiler — or hides a type error.

Could not cast value of typeiOS

Swift: Could not cast value of type 'X' to 'Y'

A force cast (as!) failed because the object isn’t the expected type.

Type of expression is ambiguousiOS

Swift: Type of expression is ambiguous without a type annotation (more context)

The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.

Main actor-isolatediOS

Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races

Strict concurrency checking found code that accesses main-actor state from another isolation domain, or passes non-Sendable value…

Index out of rangeiOS

Swift: Fatal error: Index out of range

Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.

requires explicit use of 'self'iOS

Swift: Reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit

In an escaping closure inside a class, Swift requires self. to make the capture (and potential retain cycle) visible.

Escaping closure captures mutating 'self'iOS

Swift: Escaping closure captures mutating 'self' parameter

A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.

DecodingErroriOS

Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted

JSONDecoder couldn’t map the JSON to your Codable type — a key is missing, a value has a different type or is null, or the data i…

is only available in iOS x or neweriOS

Swift: 'X' is only available in iOS 16.0 or newer

You used an API that requires a newer iOS than your deployment target.

DecodingError.dataCorrupted: The given data was not valid JSONiOS

Error Domain=NSCocoaErrorDomain Code=3840 "Unable to parse empty data." / dataCorrupted

JSONDecoder got empty, HTML or malformed data.

Type does not conform to protocoliOS

error: Type 'User' does not conform to protocol 'Decodable'

A type doesn't satisfy a protocol's requirements.

Two steps away (36)

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

ClassCastExceptionJava

java.lang.ClassCastException: class A cannot be cast to class B

An object was cast to a type it isn’t.

TS7016Node.js

TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type.

The JavaScript package has no TypeScript types bundled and no @types package installed.

CS0246.NET

error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)

The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.

CS0103.NET

error CS0103: The name 'x' does not exist in the current context

The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…

CS1061.NET

error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found

The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…

Unexpectedly found niliOS

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Swift force-unwrapped (`!`) an optional that was nil, crashing the app.

Illegal instructionLinux

Illegal instruction (core dumped) (SIGILL)

The program used a CPU instruction your processor doesn’t support — typically AVX/AVX2 in prebuilt binaries (TensorFlow, MongoDB…

0xC0000142Windows

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…

CS8618.NET

warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable

With nullable reference types enabled, a non-nullable reference property isn’t initialised by the constructor.

declared and not usedGo

Go: declared and not used: x / "fmt" imported and not used

Go refuses to compile code with unused local variables or unused imports.

E0308Rust

Rust: error[E0308]: mismatched types — expected `X`, found `Y`

A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…

Publishing changes from background threadsiOS

SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread

An ObservableObject’s @Published property was updated from a background thread.

Main Thread CheckeriOS

Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout]

UIKit was used from a background thread; UI must only be touched on the main thread.

all goroutines are asleep - deadlockGo

Go: fatal error: all goroutines are asleep - deadlock!

Every goroutine is blocked waiting (on a channel, mutex or WaitGroup), so the program can never continue.

Index was out of range.NET

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection

Code accessed a List/collection position that doesn’t exist (IndexOutOfRangeException for arrays).

Stack overflow.NET

.NET: Stack overflow. / Process is terminated due to StackOverflowException

Infinite or very deep recursion exhausted the thread’s stack; .NET can’t catch it and terminates the process.

EXC_BAD_ACCESSiOS

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

The app accessed memory it shouldn’t — a dangling pointer, released object, unsafe pointer misuse, a data race, or infinite recur…

Cannot find 'x' in scopeiOS

error: Cannot find 'viewModel' in scope

The name isn't visible where you use it.

Cannot assign to value: 'x' is a 'let' constantiOS

error: Cannot assign to value: 'count' is a 'let' constant

You tried to change something declared with `let`.

Actor-isolated property can not be referenced from a non-isolated contextiOS

error: Actor-isolated property 'items' can not be referenced from a non-isolated context

You accessed actor state from outside the actor without `await`.

Capture of non-sendable type in @Sendable closureiOS

warning: Capture of 'self' with non-sendable type 'ViewModel' in a `@Sendable` closure

Swift 6 concurrency checking flags data that crosses threads without being Sendable.

'self' captured by a closure before all members were initializediOS

error: 'self' captured by a closure before all members were initialized

A closure uses `self` before all stored properties are set.

IBOutlet is nil (Unexpectedly found nil while implicitly unwrapping)iOS

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: self.label

An outlet was used before the view loaded or isn't connected.

SyntaxError: JSONJavaScript

SyntaxError: Unexpected token < in JSON at position 0

`JSON.parse()` / `response.json()` received something that isn’t JSON — very often an HTML error page.

JSONDecodeErrorPython

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.

entity.parse.failedAPI

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.

No such moduleiOS

Swift: No such module 'X' (module not found)

Xcode can’t find a Swift package, pod or framework you import.

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0iOS

warning: The iOS deployment target is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0

A Pod targets an old iOS version that current Xcode no longer supports.

NavigationView deprecated / NavigationLink warningiOS

'NavigationView' was deprecated in iOS 16.0: use NavigationStack and NavigationSplitView instead

NavigationView is replaced by NavigationStack.

CDN: trunk URL couldn't be downloadediOS

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/...

CocoaPods couldn’t reach its CDN spec repo — network/proxy issues, rate limiting, or an outdated CocoaPods.

NSURLErrorDomain Code=-1001iOS

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."

The server didn’t respond within URLSession’s timeout (60 s default) — slow server, unreachable host on this network, or a stalle…

type 'Null' is not a subtype of type 'String'Flutter / Dart

Dart: type 'Null' is not a subtype of type 'String' in type cast

A value that was `null` at runtime was cast or used as a non-nullable type, most often when parsing JSON.

fatal: protocol error: bad pack headerGit

fatal: protocol error: bad pack header

Git received garbage instead of a pack, from a proxy or broken server.

Missing return in a function expected to returniOS

error: Missing return in a function expected to return 'Int'

A code path in your function ends without returning a value.

Missing argument for parameter / Extra argument in calliOS

error: Missing argument for parameter 'id' in call

A call doesn't match the function's signature.