#benji_webhooks

1 messages ¡ Page 1 of 1 (latest)

fresh fogBOT
#

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

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

strange jewel
#

hello! did you run the command to forward webhooks to your own localhost?

turbid mauve
#

also, can you somehow quit the workbench from stripe dashboard; i want to switch to the old view for now

strange jewel
turbid mauve
#

ive excatly tried this:

$ stripe --api-key=xxx events resend evt_1PnPYPHGbPvMN2roCpgShFyB --forward-to=127.0.0.1:8000/stripe/webhook/
#

unknown flag: --forward-to

strange jewel
#

you need to run it in separate terminals - the resend one in terminal 1, the forward-to in terminal 2

turbid mauve
#

ive a seperate stripe cli listener always running in my main terminal, or do you mean
i should pipe the output of the first command to another stripe command? can you give me an example maybe?

strange jewel
#

what do you mean by having the cli listener in your main terminal? what command are you running there?

tepid dawn
#

@turbid mauve the forward-to flag can only be used with stripe listen

turbid mauve
#

my main terminal has this stripe command always active

stripe listen --api-key=xxx --forward-to http://127.0.0.1:8000/stripe/webhook/

in my second terminal i am trying to

$ stripe --api-key=xxx events resend evt_1PnPYPHGbPvMN2roCpgShFyB

but the listener is not receiving it

tepid dawn
#

Okie that looks correct but what does the main terminal output?

#

Nothing?

#

Ah wait

turbid mauve
#

yeah, nothing hits my endpoint, but events resend will only stdout the event to console

tepid dawn
#

I do see that event be resent to your Stripe CLI instance

#

Can you screenshot your main terminal after you resend on the 2nd terminal?

turbid mauve
#

I restarted the listener, now i can see it received

#

maybe my output was just eaten from that process

tepid dawn
#

Alright glad it's working now xD

turbid mauve
#

im trying to build a django serializer system that has some fallbacks if objects are not in our database