Problems with using Bits

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!