Stripe API Workflow WORKS IN TEST BUT NOT LIVE

Going insane!!!

I’m using Bubble API connector to connect to the stripe API.

Everything was working fine but I made a change (switched from using an option set for product inventory to using a Data Type). Now it’s broke IN LIVE MODE ONLY.

EVERYTHING WORKS IN DEV MODE.

In dev mode, when I run the workflow, it imports my subscriptions, pricing, quantity, subscription items, etc. IT ALL WORKS.

In live mode…it doesn’t work. The workflow pulls in the subscriptions but not the subscription items.

I’ve been trying to sort this out all weekend…trying to figure out what it going wrong through a process of elimination.

PLEASE HELP

Do you have your Stripe LIVE keys in the API connector? Keep in mind that all Stripe IDs (customers, subscriptions, etc.) are also environment specific. Stripe is similar to Bubble in that the datasets are completely separate for test vs live. For example, a test customer is not going to be found with a live key.

Yes, LIVE key is in the API connector and the workflow is importing SUBSCRIPTIONS data based on the customer ID from both LIVE and DEV versions.

The issue is that the workflow to import SUBSCRIPTION ITEMS is not working in the LIVE VERSION ONLY.

  • Review your server logs and see if any server-side errors are coming back from the API calls.
  • In the server logs, are the right subscription IDs being referenced? Your actions involve several searches to locate things, so check that each search is able to reference what it needs with your live data.
  • Does the product get created if it meets that condition? If it does, that at least tells you the backend workflow is triggered properly.
  • How are you triggering that first workflow to create/get the subscription? Check the logic for the SubID parameter. It’s possible the “Get Items” action just isn’t returning the items (therefore can’t create your internal records).
  • I’m assuming the issue is for a scenario when a subscription already exists, right? Because if you’re creating a subscription for the first time, there aren’t any items yet.

Thanks! I reviewed the logs but nothing jumped out.

After very detailed testing, I knew exactly which step my workflow was failing on but no matter what I tried I COULD NOT get it to work.

Ultimately what solved it was to just delete the troubled step and rebuild it the exact same way. I know it’s the same because I took before and after screenshots and compared them side by side.

I’ve never had Bubble glitch out like this before.