# React Native SDK - Card Entry API - Unexpected error code

**URL:** <https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848>\
**Category:** Questions\
**Created:** [May 5, 2022, 1:16pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848 "2022-05-05T13:16:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 5, 2022, 1:16pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/1 "2022-05-05T13:16:59Z")

</div>

When adding a card on my app I began to receive this error. It’s a react native app.

 ![simulator_screenshot_E1B278F8-D23A-4BF3-BFEE-883183B4A4FB](https://global.discourse-cdn.com/square/original/2X/9/9dc597e393286ae0b5d314f731c0ba0ceb42120b.jpeg)

Using flipper I was able to see the request and it seems like there is no response to it!

How can I solve this issue? It seems like some network error.

---

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 5, 2022, 1:33pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/2 "2022-05-05T13:33:09Z")

</div>

The call is made to:  
[https://pci-connect.squareupsandbox.com/v2/mobile/card-nonce](https://pci-connect.squareupsandbox.com/v2/mobile/card-nonce)  
With this request body:  
{“client\_id”:“sandbox-XXXXXXX”,“s”:{“s11”:“3”,“s8”:1170,“s20”:“15.4”,“s14”:“XXXXX”,“s4”:“x86\_64”,“s9”:2532,“s12”:false,“s0”:“iOS”,“s15”:“com.cosm.cosmvenueapp”,“s1”:false,“s6”:“America/Sao\_Paulo”,“s13”:-1,“s2”:false,“s7”:“pt-BR”,“s16”:false},“card\_data”:{“number”:“4111111111111111”,“exp\_year”:2025,“billing\_postal\_code”:“90049”,“cvv”:“111”,“exp\_month”:11}}

But no response appears to be given.

---

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 5, 2022, 2:33pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/3 "2022-05-05T14:33:10Z")

</div>

The error only occurs on iOS.

---

<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:** [May 5, 2022, 4:27pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/4 "2022-05-05T16:27:53Z")

</div>

What version of In-App Payments SDK is the React Native plugin targeting? 🙂

---

<div class="post-metadata">

**Author:** ![Bordeen](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@Bordeen](https://developer.squareup.com/forums/u/Bordeen)\
**Post date:** [May 5, 2022, 7:02pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/5 "2022-05-05T19:02:36Z")

</div>

Hey there, our team is also experiencing this issue. We are targeting “react-native-square-in-app-payments”: “^1.2.3”. I have tried updating to the latest package (1.7.1) but the issue still occurs.

---

<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:** [May 5, 2022, 7:10pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/6 "2022-05-05T19:10:13Z")

</div>

Would you mind sharing the application ID and `location_id` you’re experiencing this with?

---

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 5, 2022, 7:13pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/7 "2022-05-05T19:13:15Z")

</div>

sandbox-sq0idb-gzQk70z69ZpBJdnqrIqNwQ  
LK8FW923BZJCY  
Package version is 1.7.1.

---

<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:** [May 5, 2022, 7:15pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/8 "2022-05-05T19:15:34Z")

</div>

Thanks for the tokens. What are the steps to reproduce?

---

<div class="post-metadata">

**Author:** ![Bordeen](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@Bordeen](https://developer.squareup.com/forums/u/Bordeen)\
**Post date:** [May 5, 2022, 7:17pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/9 "2022-05-05T19:17:20Z")

</div>

Happens on our end anytime we try to add a card or directly make a payment. Making a payment with previously added cards works fine.

---

<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:** [May 5, 2022, 7:26pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/10 "2022-05-05T19:26:23Z")

</div>

Is this only in sandbox or is this happening in production.

---

<div class="post-metadata">

**Author:** ![Bordeen](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@Bordeen](https://developer.squareup.com/forums/u/Bordeen)\
**Post date:** [May 5, 2022, 7:27pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/11 "2022-05-05T19:27:21Z")

</div>

The issue is only occurring in sandbox.

---

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 5, 2022, 8:13pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/12 "2022-05-05T20:13:09Z")

</div>

We haven’t tested on production. It’s happening on the sandbox for us.

---

<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:** [May 5, 2022, 10:16pm UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/13 "2022-05-05T22:16:18Z")

</div>

The team has identified the issue and put a fix in place. 🙂

---

<div class="post-metadata">

**Author:** ![amorales](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amorales](https://developer.squareup.com/forums/u/amorales)\
**Post date:** [May 6, 2022, 1:08am UTC](https://developer.squareup.com/forums/t/react-native-sdk-card-entry-api-unexpected-error-code/5848/14 "2022-05-06T01:08:44Z")

</div>

Just confirmed. Its working again. Thanks Bryan.
