#Ghar

1 messages · Page 1 of 1 (latest)

coral hornetBOT
tribal meteor
#

Thanks for reporting that bug. It sounds like we aren't providing the Stripe API version so we are defaulting to your account's API version but that doesn't support those parameters

#

I will file a bug report so that we can fix that. In the mean time you can use the CLI to resend those events

misty hinge
#

Thanks, but my account API is also 2022-11-15

#

Stripe CLI same issue - but gives error no such endpoint.
The endpoint seems fine

stripe events resend evt_1MNI8wGa4fn7zJwNzn0lFvpM --webhook-endpoint=http://localhost:3000/webhooks/stripe --account=###
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such webhook endpoint: 'http://localhost:3000/webhooks/stripe'",
"param": "webhook_endpoint",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_k4bfliyp5E9DnT?t=1673020403",
"type": "invalid_request_error"
}
}
curl -X POST -H "Content-Type: application/json" -d '{"message": "Hello, World!"}' http://localhost:3000/webhooks/stripe
{"status":"ok"}%

tribal meteor
#

For that --webhook-endpoint argument, it is expecting the ID of the endpoint (we_123) not the URL

misty hinge
#

cool let me try that

#

I do not see any endpoints, just a local listener
probably due to using Stripe CLI to route endpoint to localhost

tribal meteor
#

Yeah the local listener would be the CLI endpoint. That ID should be the one to provide here

#

Or if you don't provide an endpoint ID at all it should just resend to all applicable endpoints including your local listener

misty hinge
tribal meteor
#

If you click on its entry I believe it should take you to a page for it

misty hinge
#

Excellent - not providing endpoint worked - thanks

#

also, using subdomain with localhost does not work
but I am OK now, saved me a lot of time :) thanks