# Problems with using Bits

**URL:** <https://discuss.dev.twitch.com/t/problems-with-using-bits/20784>\
**Category:** Extensions\
**Created:** [April 6, 2019, 6:52pm UTC](https://discuss.dev.twitch.com/t/problems-with-using-bits/20784 "2019-04-06T18:52:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![curiosityGuy](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@curiosityGuy](https://discuss.dev.twitch.com/u/curiosityGuy)\
**Post date:** [April 6, 2019, 6:52pm UTC](https://discuss.dev.twitch.com/t/problems-with-using-bits/20784/1 "2019-04-06T18:52:06Z")

</div>

Hi,  
we released a new Extension today.  
Before releasing we tested our code with some development-products and it worked wonderful.  
Now we released and changed the products to development: NO.

If we now try to to use Bits on Streamer who has installed the Extension, we just get a meesage: “Sorry, something went wrong”.

A look in the Network analysis shows: It calls [https://api.twitch.tv/v5/bits/extensions/is-eligible/veve100](https://api.twitch.tv/v5/bits/extensions/is-eligible/veve100)  
And this call returns with 500 - Internal Server Error.

We used the same code in another Extension and there it works great.

Has someone an idea what is wrong?

---

<div class="post-metadata">

**Author:** ![AlbericoD](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/albericod/32/4325_2.png) [@AlbericoD](https://discuss.dev.twitch.com/u/AlbericoD)\
**Post date:** [April 7, 2019, 1:14am UTC](https://discuss.dev.twitch.com/t/problems-with-using-bits/20784/2 "2019-04-07T01:14:14Z")

</div>

I’ve been investigating the documentation and this is because the channel can not receive bits, if I am not mistaken it seems that now any type of channel can install, so you should check if the channel is enabled to use bits, doing so you provide your experience to any kind of channel, to check this should be something like: twitch.ext.features.isBitsEnabled

### Checking the Bits in Extensions Feature Flag

Extensions with Bits in Extensions features can be installed by all broadcasters, regardless of their ability to receive Bits on their channels. You can check the `twitch.ext.features.isBitsEnabled` feature flag to determine if Bits in Extensions features will work in your extension on the current channel.

This flag may be false if:

- You did not enable Bits support in the **Monetization** tab in the Extensions manager.
- The broadcaster is not eligible to receive Bits.
- The broadcaster disabled Bits in Extensions features for your extension.

If this flag is `false` , you should disable or hide the Bits in Extensions features in your extension. Better yet: _build experiences that account for both eligible and ineligible channels._

> **[Exchanging Bits for a Product - Monetization](https://dev.twitch.tv/docs/extensions/monetization/#exchanging-bits-for-a-product)**
>
> Reviews for chatbot verification continue to be temporarily paused while we revise our processes. Reviews for Extensions, developer organizations, and game ownership have resumed. Thank you for your patience and understanding. | Extensions...

---

<div class="post-metadata">

**Author:** ![gawd0r](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/gawd0r/32/6147_2.png) [@gawd0r](https://discuss.dev.twitch.com/u/gawd0r)\
**Post date:** [April 12, 2019, 6:51pm UTC](https://discuss.dev.twitch.com/t/problems-with-using-bits/20784/3 "2019-04-12T18:51:07Z")

</div>

Unfortunately there is no explanation with the 500 Internal Server Error http response.

I had this error many times, and here’s a list of reasons that will generate such error:

1. You have installed a release version that uses Bits, on a channel that is not Affiliate or Partner. You will get this error, even if you’re the developer, and even if you have Bits in your account.

2. You called useBits on an invalid SKU. Your SKU must be available, and “development” must be set to no IF you’re using a released extension. Development SKUs don’t work in release environment.

3. You had such an SKU, and you deprecated it.

In short, when I have this error (and I do, from time to time,) I first make sure I’m on my affiliate account, and I use getProducts() to get a list of SKUs. Make sure these two are valid for you.

Cheers!

---

<div class="post-metadata">

**Author:** ![Reishibot](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Reishibot](https://discuss.dev.twitch.com/u/Reishibot)\
**Post date:** [April 27, 2023, 6:48pm UTC](https://discuss.dev.twitch.com/t/problems-with-using-bits/20784/4 "2023-04-27T18:48:33Z")

</div>

This may not be it, but remember that you cannot use bits on your own channel 😛
