#akii-webhooks

1 messages · Page 1 of 1 (latest)

hearty creek
#

hi! what part specifically are you having trouble with?

grizzled oar
#

If i trigger a customer.craeted from the Stripe CLI, will it hit /webhooks?

#

I have the url saved.

hearty creek
#

not sure what "having the URL saved" means.

grizzled oar
#

Yes, i have used both these things, yes i also meant teh same --forward-to only.

#

It is not hitting the url.

hearty creek
#

can you share the exact stripe command you're running?

#

plus the exact full Java code, and how you run that code

grizzled oar
#

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

hearty creek
#

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?

grizzled oar
#

does it need the webhook secret

#

??

hearty creek
#

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?

grizzled oar
#

okay thanks for all the help