#rob_api

1 messages ยท Page 1 of 1 (latest)

torn narwhalBOT
#

๐Ÿ‘‹ 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/1270473829914902569

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

lime kelp
#

Hello
Did you check your dashboard to see if you created these products using CLI accidentally?

fringe mirage
#

just checked. that is not the issue. all the requests are like this. no information is returned just generic field responses

lime kelp
#

Can you share your account ID?

I'm 99% sure that these products exist on your account.. The description matches the products that get created when you trigger various webhook events using stripe trigger

fringe mirage
#

i'm not sure you are following me. when i enter commands in cmd, such as 'stripe products list' the response includes all fields but the data is either null or has a generic filler such as "(created by stripe cli)" instead of the actual descriptor

#

previously the cmd was returning actual information in response fields

lime kelp
#

I understand you. I am saying the CLI command is returning the correct data

#

Your account prob has duplicated products

#

You're seeing a list of these right?

fringe mirage
#

yes

#

previously i saw information in the description field

lime kelp
#

That's an actual product that exists on my account

fringe mirage
#

C:\Users\rober>stripe products list | jq ".data[].name"
"myproduct"
"myproduct"
"myproduct"

#

previously i saw a list of actual products

#

now i do not

lime kelp
#

can you share your account ID please?

fringe mirage
#

acct_1NMcIwDYAhEL44o6

#

C:\Users\rober>stripe customers list | jq ".data[].name"
null

#

previously i saw list of customers

lime kelp
#

This is a screenshot from your account for list of products in test mode

There are only 3 products there

fringe mirage
#

oh the cmd is running in test mode

#

previously i guess i was in real mode

#

how do you toggle cmd sign-in between real and test mode

#

i have been logging into my cmd the exact same way but for some reason it is clearly in safe mode now

#

or test mode i meant

lime kelp
#

try passing --live flag

fringe mirage
#

C:\Users\rober>stripe --live
unknown flag: --live

lime kelp
#

stripe products list --live

#

that works for me

fringe mirage
#

ah yes this works for me as well

#

why is my session in test mode and how do i select this- very important

#

somehow it randomly switched to test mode so would like to know how to toggle back and forth

#

thanks btw appreciate your help here

lime kelp
#

Stripe CLI isn't supposed to be used for live mode.. It is supposed to be used when you're building your integration to test different scenarios. It defaults to test mode I think

fringe mirage
#

got it. it was initially defaulting to live mode for me and then randomly switched

#

i have one other quick question on webhooks if you can help there?

#

when i fwd to localhost and then i enter the local host address in my browser it doesn't connect. are you supposed to be able to see the activity via your browser window to test if it is working or no? it works with two cmd windows open. working through steps so i can send webhooks to aws api gateway so i can manage customer database in dynamodb

#

i had requested eventbridge access but haven't heard back

lime kelp
#

No. The webhook events are delivered to your server. So you won't be seeing any activity in your browser.

The URL you need to provide is where your backend server is running and listening for the events

fringe mirage
#

got it ok thanks

#

am i wasting time building all this in api gateway on aws and have to redo it all when eventbridge is rolled out?

lime kelp
#

I have not worked with how eventbridge works unfortunately, so I don't know if it would require more/less changes.

#

As far as I can tell, you'd still need to respond from a corresponding AWS service so maybe your event handler code can be reused? Idk for sure though

fringe mirage
#

yeah that makes sense

#

last question - are there any videos /sample code for webhook / aws integration for crud. just looking to build super simple customer database crud in dynamodb so i can automate stuff from there

#

not trying to reinvent the wheel if someone has already written event handler code for this

lime kelp
#

I don't think we have any first party videos for this but if you look on youtube, I'm sure you'd find plenty

fringe mirage
#

ive been looking for past two days and haven't seen any specifically talking about stripe crud in aws

#

๐Ÿ˜ญ

lime kelp
fringe mirage
#

yes! thank you

#

this guy is the man

lime kelp
#

Happy to help! ๐Ÿ™‚