#karls_api

1 messages ¡ Page 1 of 1 (latest)

lapis kindleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1332435911006490645

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

echo pilot
#

This works in DEV and does not work in PROD

vast fern
#

Hi, can you share the request id from when it works in Test mode?

echo pilot
#

It's included in the ticket

vast fern
#

You'd want to use discounts instead.

echo pilot
#

OK, works in DEV not in PROD?

vast fern
#

Both of the requests above are from your Live mode request

echo pilot
#

Yes, I'm in LIVE mode and what was working in PROD isn't working.

vast fern
#

Can you share the request id that worked?

echo pilot
#

Yes.. in DEV you mean? 1 sec.

vast fern
#

You said you shared, but the ones you shared are in Live mode

#

Yes please, thank you

echo pilot
#

sub_1QkqaCDOnh5qjbu1tnBofrNG

vast fern
#

Taking a look

#

That is a different code no?

echo pilot
#

Yes, passing promotion_code. Is this not right for production?

vast fern
#

That is under discounts

echo pilot
#

And line item discounts

#

Yes, I think so.

#

related to the subscription request.

vast fern
#

Yeah, your live request is passing promotion_codewhile your test request is using discounts.promotion_code

#

Can you change your code and try that please?

echo pilot
#

In code, I'm looking up the promotion code, grabbing the ID and addition to Options.Discounts

#

Let me see. Ohh..

#

So discounts.promotion_code is correct. Somehow promtion_code is call in production. I'll search my code for promotion_code now and proof everything. give me 5.

vast fern
#

Sure!

echo pilot
#

In the API, there isn't a property named promotion_code (with the underscore) is there? I'm assuming not.

vast fern
echo pilot
#

I think I may know the issue.

#

My website auto-scaling has scaled instances that do not support the changes I've recently made. I need to generate a new image to deploy these changes across my load balancer and test again.

vast fern
#

Glad we were able to unblock you here from our end

echo pilot
#

Lolz. After walking my code, I only found updated code for adding promo code to discounts, and then it hit me...