#danielncr_api

1 messages ¡ Page 1 of 1 (latest)

covert zenithBOT
#

👋 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/1334942993374773420

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

lucid sentinel
hot bluff
#

No, I just wrote python code to do the deletions instead.

#

There's something weird with the cli vs. the api. Here's another example: {
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such subscription: 'sub_1MCqpuGQczlVgspFBQit2ILt'",
"param": "id",
"request_log_url": "https://dashboard.stripe.com/logs/req_zApF5BqDRvX7BL?t=1738345209",
"type": "invalid_request_error"
}
}

Learn more about error codes and how to resolve them.

lucid sentinel
#

I'm unsure what you're asking here, can you reword please?

hot bluff
#

When I tried to cancel subscriptions through the CLI they failed saying that the subscription didn't exist. After several attempts at this I wrote python code to do it instead which worked. I'd been using the CLI successfully this way for quite some time and I'd like to know why it didn't work.

lucid sentinel
hot bluff
#

in what way do I use the correct account?

lucid sentinel
#

I tested deleting a subscription via the CLI and it just works

#

But if I provide a subscription that belong to my other account, it fails

hot bluff
#

I logged into the correct account first.

#

Like I said, I've never had this fail before either, before today.

lucid sentinel
#

Can you try to delete another subscription using Curl and share the id of the subscription with me?

hot bluff
#

I've already deleted them all with the python code.

#

I can give you a request id and a subscription id of when I tried before using the python code:

lucid sentinel
hot bluff
#

Are you not able to look up that request ID?

lucid sentinel
#

I think you've logged into the incorrect account via the CLI.

#

The subscription belongs to
acct_1Brc3yGQczlVgspF

#

So all the evidence suggests my suspicion above so can you ensure that you've logged to the correct CLI account?

hot bluff
#

My ~/.config/stripe/config.toml file shows the correct account:

#

color = ''
project-name = 'default'
[default]
account_id = 'acct_1Brc3yGQczlVgspF'
device_name = 'macbookpro.lan'
display_name = 'Spokanefavs'

#

How could I be logged into some other account? I don't

#

even know what that other account is.

lucid sentinel
#

So you're saying you do not know what this account,
acct_1ASCSHBMAMOLTEak is?

hot bluff
#

I just looked it up. It's our connect account.

#

But shouldn't be involved here.

#

I explicitly used stripe login to get to the spokanefavs account before trying the deletions.

#

And confirmed that with the config.toml.

lucid sentinel
#

The only way I can reproduce the issue is if I log in to a different account and use a subscription id from another account