---
title: Handling errors
framework: storekit
role: article
role_heading: Article
path: storekit/handling-errors
---

# Handling errors

Determine the underlying cause of errors that result from StoreKit requests.

## Overview

Overview A StoreKit request may fail for one of many possible reasons, including invalid product information, invalid payment details, problems with your App Store Connect account, or networking issues. When an error occurs, check the error code to find out what went wrong. Determine the cause of the error When handling errors, such as with the request(_:didFailWithError:) delegate method, it’s important to use the domain and code of the resulting error to determine the underlying cause of failure. StoreKit uses SKErrorDomain for errors related to payments, store products, and cloud services, as described in SKError.Code. For additional information on troubleshooting StoreKit framework issues, see the In-App Purchase FAQ. Errors related to networking use NSURLErrorDomain. The following table describes some of the most common networking errors that may occur when using StoreKit:  |   |   |   |   |   |   |   |

## See Also

### Errors

- [SKError.Code](storekit/skerror/code.md)
- [SKError](storekit/skerror.md)
- [SKErrorDomain](storekit/skerrordomain.md)
