#akii-webhooks
1 messages · Page 1 of 1 (latest)
If i trigger a customer.craeted from the Stripe CLI, will it hit /webhooks?
I have the url saved.
it most likely will, if you have things set up that (like you use --forward-to on stripe listen to forward to your server's URL)
not sure what "having the URL saved" means.
Yes, i have used both these things, yes i also meant teh same --forward-to only.
It is not hitting the url.
can you share the exact stripe command you're running?
plus the exact full Java code, and how you run that code
stripe listen --forward-to http://localhost:8080/api/v1/billing/webhooks
This is the command
@POST
@Path("/webhooks")
public String webhooks(Request request) throws StripeException{
System.out.print("Webhook:::"+request);
return "";
}
and this is the java code
Its also giving this CLI : [401] POST http://localhost:8080/api/v1/billing/webhooks@POST
401 means an authentication error (from your server), I believe.
maybe you've configured the server to need a username/password/logged in session or something?
no, it doesn't
it seems unrelated I think, like I said, seems like it's how your server is setup. Maybe look at the logs of your own server and see why it rejects that request?
okay thanks for all the help