# Errors while Moving to Production from SandBox

**URL:** <https://developer.squareup.com/forums/t/errors-while-moving-to-production-from-sandbox/905>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [September 10, 2020, 6:44am UTC](https://developer.squareup.com/forums/t/errors-while-moving-to-production-from-sandbox/905 "2020-09-10T06:44:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsingh](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nsingh](https://developer.squareup.com/forums/u/nsingh)\
**Post date:** [September 10, 2020, 6:44am UTC](https://developer.squareup.com/forums/t/errors-while-moving-to-production-from-sandbox/905/1 "2020-09-10T06:44:52Z")

</div>

I am moving my Code from Dev into Prod. I have changed my code to use Production values, but i am still getting errors.

 ![image](https://global.discourse-cdn.com/square/original/1X/acf67ea24a6f2d2f91d5c4cf91278e245996bbde.png)

Looking at the source i do see that Production version of javascript is getting loaded  
` <script type="text/javascript" src="https://js.squareup.com/v2/paymentform"></script>`

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [September 10, 2020, 3:15pm UTC](https://developer.squareup.com/forums/t/errors-while-moving-to-production-from-sandbox/905/2 "2020-09-10T15:15:08Z")

</div>

The logs are showing many references to [squareupsandbox.com](http://squareupsandbox.com), so it sounds like you’re still loading the sandbox (`https://js.squareupsandbox.com/v2/paymentform`) from somewhere. If you’re using production application id, that would explain the 401 and authorization errors since it’s hitting sandbox.

---

<div class="post-metadata">

**Author:** ![nsingh](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nsingh](https://developer.squareup.com/forums/u/nsingh)\
**Post date:** [September 10, 2020, 3:46pm UTC](https://developer.squareup.com/forums/t/errors-while-moving-to-production-from-sandbox/905/3 "2020-09-10T15:46:38Z")

</div>

I am using balzor for front end, and it is notorious in keeping thing cached. I had to manually force clean the cache and it is working as expected.
