# Getting error in card hydrate API

**URL:** <https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039>\
**Category:** Questions\
**Created:** [July 19, 2023, 1:48pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039 "2023-07-19T13:48:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [July 19, 2023, 1:48pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/1 "2023-07-19T13:48:17Z")

</div>

Hey there!

I am using sandbox environment for testing card payments by using sandbox credentials in angular …but getting error :  
HttpRequestNetworkError: Network error during request (attempts=3; duration=2612ms; url=[https://pci-connect.squareupsandbox.com/payments/hydrate?applicationId=sandbox-sq0idb-0aGjvPZp36Uvcy9gPVzqBA&hostname=localhost&locationId=LMYESMFTARQ8E&version=1.50.1](https://pci-connect.squareupsandbox.com/payments/hydrate?applicationId=sandbox-sq0idb-0aGjvPZp36Uvcy9gPVzqBA&hostname=localhost&locationId=LMYESMFTARQ8E&version=1.50.1))

crrently using :

In short i am not getting the input fields to put card data.

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 20, 2023, 1:04am UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/2 "2023-07-20T01:04:32Z")

</div>

Hey @ayush_v! Can you tell me a bit more about you’re making this API request? Are you able to successfully make the request using something like [API Explorer](https://developer.squareup.com/explorer/square) or Postman?

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [July 20, 2023, 5:43am UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/3 "2023-07-20T05:43:14Z")

</div>

I am not making this request manually in my code…it runs when card is initialize by square backend, i think it is for input fields of card details like : card number, CVV, exp date and all.

Nope…its not working in Postman also.

 ![image](https://global.discourse-cdn.com/square/original/2X/3/326dee8f287660a84b184ef117c1c6f6f3d63686.png)

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 20, 2023, 9:48pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/4 "2023-07-20T21:48:09Z")

</div>

Gotcha, sorry I didn’t catch that this was about Web Payments SDK! Is the site you are adding this to live somewhere that I can investigate this on my own browser? If so, feel free to message me directly with the link if that’s preferable.

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [July 21, 2023, 6:03am UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/6 "2023-07-21T06:03:03Z")

</div>

Nope ! the application is not live yet.

this is the payment screen :

 ![image](https://global.discourse-cdn.com/square/original/2X/4/4cce94bf5cb8c43a45f7ddbca3283a51ef1aea6b.png)  
here i am not getting any input filed to enter the card details…that fields generated by previously mentioned API…and currently that API is not working for sandbox environment.

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [July 21, 2023, 6:24am UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/7 "2023-07-21T06:24:18Z")

</div>

this is the payload of the API:  
 ![image](https://global.discourse-cdn.com/square/original/2X/c/c44156382421cca29dbefba7985f9d364dcbac8e.png)

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [July 21, 2023, 10:10am UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/8 "2023-07-21T10:10:30Z")

</div>

> **[Web Payments SDK - Square Web Payments SDK Reference](https://developer.squareup.com/reference/sdks/web/payments)**
>
> The Web Payments SDK lets you easily create PCI-compliant inputs to accept online payments with the Square Payments API. The SDK supports various payment methods for a given payment scenario with a seller. After initializing the SDK, learn how to...

I am getting the same error which is occurring here in your reference page…please check it in console of the browser.

Please let me know the solutions ASAP !

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 21, 2023, 5:56pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/9 "2023-07-21T17:56:51Z")

</div>

If you’re getting this error on the Web Payments SDK reference page as well, it sounds like this may be an issue localized to your browser. Can you try the following and see if the error persists?

- Clear browser cookies
- Disable extensions
- Open the page in a different browser

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [August 30, 2023, 2:56pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/10 "2023-08-30T14:56:46Z")

</div>

It is working but i have to connect to VPN…Why it’s working only on few IPs

---

<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:** [August 30, 2023, 5:46pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/11 "2023-08-30T17:46:09Z")

</div>

What’s your location? 🙂

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [August 31, 2023, 2:01pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/12 "2023-08-31T14:01:32Z")

</div>

Ahmedabad, Gujarat, India

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [August 31, 2023, 2:02pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/13 "2023-08-31T14:02:59Z")

</div>

The issue is only with sandbox environment

---

<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:** [August 31, 2023, 4:36pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/14 "2023-08-31T16:36:18Z")

</div>

Okay, whats your IP address? 🙂

---

<div class="post-metadata">

**Author:** ![ayush\_v](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ayush\_v](https://developer.squareup.com/forums/u/ayush_v)\
**Post date:** [September 1, 2023, 2:37pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/15 "2023-09-01T14:37:24Z")

</div>

This is the IP: 110.227.208.128

---

<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:** [September 1, 2023, 4:33pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/16 "2023-09-01T16:33:41Z")

</div>

Thank you! Are there any console errors? I’ve reached out to the team about this. 🙂

---

<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:** [September 1, 2023, 6:21pm UTC](https://developer.squareup.com/forums/t/getting-error-in-card-hydrate-api/10039/17 "2023-09-01T18:21:52Z")

</div>

Also what are the for URLs for the form page and timestamps you tried to access it so our team can dig in, and if possible, cloudflare ray IDs from response headers? 🙂
