#ketaaa_webhooks

1 messages · Page 1 of 1 (latest)

ocean windBOT
#

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

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

lusty loom
dreamy stag
#

Hi

#

thanks for answering me

#

the question is not linked to magento itself

#

i just want to send back an event

ocean windBOT
lusty loom
#

what does "send back" mean?

dreamy stag
#

Use the "Resend" button

#

it have this error because I recreated the webhook endpoint

#

the webhook url remains the same, nothing changed, but it looks like i can't resend manually this event for example

#

and it happens for many events

quasi obsidian
#
dreamy stag
#

i dont have the origin error anymore

#

I solved it

#

I have 200 now

quasi obsidian
dreamy stag
#

trying now, can we keep this ticket open while i'm trying?

quasi obsidian
#

Sure

dreamy stag
#

~ % stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such notification: 'evt_3Pg8ATJhyUplILGN0dV0toT1'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "id",
"type": "invalid_request_error"
}
}
~ %

Learn more about error codes and how to resolve them.

quasi obsidian
#

The CLI functions in test mode by default, you need to pass --live flag:

stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1 --live
#
stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1 --live --webhook-endpoint=we_xxx
dreamy stag
#

trying

quasi obsidian
#

You need to provide the we_xxx ID of the endpoint

#

Click the URL in your screenshot and it'll be available on that page

dreamy stag
#

thanks

#

it's working

#

can you export me the list of all the events that are still in pending?

#

because as my webhook endpoint got re-initialised in Stripe, I dont have access to the list easily

#

I have to go on every transaction and check

quasi obsidian
#

There's a delivery_success parameter you can pass to get the failed ones

dreamy stag
#

thanks

#

and my last question is :

when I click "Resend" it says "Event does not exist" but will it automatically resend it to my new webhook endpoint if it's the same url?

quasi obsidian
#

No, you'll need to use the CLI as I've explained

dreamy stag
#

ok thanks

#

trying the CURL to fetch the events

quasi obsidian
#

Cool, hopefully that gets you what you need

dreamy stag
#

thanks!!

#

do I have a way to not prompt for the password when im resending the events because i will script them

quasi obsidian
#

The CLI shouldn't prompt you for a password?

dreamy stag
#

ah yeah you're right

#

thanks a lot for your help

#

5 stars!!

#

worked like a charm thanks

#

we can close this ticket 🙂