# ASCWebSDK: Request has been terminated

**URL:** <https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000>\
**Category:** Web\
**Created:** [December 6, 2023, 7:38am UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000 "2023-12-06T07:38:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanon](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kanon](https://forum.social.plus/u/kanon)\
**Post date:** [December 6, 2023, 7:38am UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/1 "2023-12-06T07:38:31Z")

</div>

##### ASCError

ASCWebSDK: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

could anyone point me how to debug this issue?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [December 6, 2023, 9:40am UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/2 "2023-12-06T09:40:03Z")

</div>

Hello,

To help us understand and address the issue, could you please:

1. Share the steps you followed before encountering the error.
2. Provide screenshots or a screen recording of the problem.
3. Let us know the versions of the SDK you’re using.

These details will assist us in finding a solution. Thank you!

Best regards,

Support Team

---

<div class="post-metadata">

**Author:** ![kanon](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kanon](https://forum.social.plus/u/kanon)\
**Post date:** [April 15, 2024, 2:53pm UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/3 "2024-04-15T14:53:07Z")

</div>

hello im unable to provide screenshots nor the steps because i got it from sentry reporting. here’s my SDK version  
`"@amityco/js-sdk": "^5.31.0"`

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 15, 2024, 3:30pm UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/4 "2024-04-15T15:30:23Z")

</div>

Could you assist in retrieving the log from Sentry, please? Without logs or additional information, it’s challenging for our team to verify the issue.

Also, we would recommend transitioning to TS SDK, as the JavaScript SDK has been deprecated, and we will discontinue its support by September 30, 2024. Please transition to the TypeScript SDK before this obsolescence date. Please visit [Intall TypeScript SDK](https://docs.amity.co/getting-started/installation-and-authentication/install-ts-reactnative-sdk) for the installation guide.

---

<div class="post-metadata">

**Author:** ![kanon](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kanon](https://forum.social.plus/u/kanon)\
**Post date:** [April 15, 2024, 5:19pm UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/5 "2024-04-15T17:19:54Z")

</div>

we only have this exception log  
` **ASCError:** ASCWebSDK: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`  
this might help

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/01febb8667c611eba384b2a4db54e2f8d2985823.png)

we’re using Social UIkit too, does TS SDK already work well with that?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 16, 2024, 10:07am UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/6 "2024-04-16T10:07:06Z")

</div>

Hello, yes, TS SDK will work well with the [UIKit v 3.0+](https://docs.amity.co/amity-uikit/changelogs/changelog-2#version-3.0.0-2024-01-19)

For this exception, how often does it occur? Is it happening with all users? or only some?

---

<div class="post-metadata">

**Author:** ![kanon](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kanon](https://forum.social.plus/u/kanon)\
**Post date:** [April 17, 2024, 11:29am UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/7 "2024-04-17T11:29:34Z")

</div>

occasionally, but we got the reports almost everyday, it seems only some users

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 19, 2024, 1:14pm UTC](https://forum.social.plus/t/ascwebsdk-request-has-been-terminated/1000/8 "2024-04-19T13:14:40Z")

</div>

@kanon Could you please try updating to the latest version of our JS SDK: 5.37.4, and observe if the error still occurs?
