# iOS SquarePointOfSaleSDK in Swift calls the Square POS app but error log generated

**URL:** <https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316>\
**Category:** Questions\
**Tags:** point-of-sale-api\
**Created:** [June 24, 2022, 10:45pm UTC](https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316 "2022-06-24T22:45:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Craig](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Dr.Craig](https://developer.squareup.com/forums/u/Dr.Craig)\
**Post date:** [June 24, 2022, 10:45pm UTC](https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316/1 "2022-06-24T22:45:52Z")

</div>

I wrote a tiny Swift app called POSSDKTest2 to charge $1.00 via the api call to Square’s point of sale app. Immediately after it said “Stand Connected” (we have an iPad kiosk and card reader), it kicked back to my app and generated the following error message on my console log:  
**22-06-24 18:41:01.858010-0400 POSSDKTest2[93250:2584134] [Common] Snapshot request 0x2809716e0 complete with error: \<NSError: 0x280952ca0; domain: FBSSceneSnapshotErrorDomain; code: 3; reason: “the request was canceled”\>**  
Does anyone know why this is generated? Thanks!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 24, 2022, 11:32pm UTC](https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316/2 "2022-06-24T23:32:23Z")

</div>

👋 That error happens when the payment flow is canceled in the Square app and returns to your app. 🙂

---

<div class="post-metadata">

**Author:** ![Dr.Craig](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Dr.Craig](https://developer.squareup.com/forums/u/Dr.Craig)\
**Post date:** [June 27, 2022, 1:46pm UTC](https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316/4 "2022-06-27T13:46:43Z")

</div>

Thanks Bryan - I discovered it is generated when my app gets dismisses after it is on screen after the Square POS failed.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 27, 2022, 6:09pm UTC](https://developer.squareup.com/forums/t/ios-squarepointofsalesdk-in-swift-calls-the-square-pos-app-but-error-log-generated/6316/5 "2022-06-27T18:09:44Z")

</div>

Glad to hear you figured out the issue. 🙂
