#adelvalle
1 messages ยท Page 1 of 1 (latest)
I dont know why is not do my post method
sorry
mi webhook is this: https://researchmacro-beta.arcanopartners.com/o/arcano/paymentServlet
and the post method does not work
no enter
and I dont know why
we_1LxSRnK8ASnZKS7JxNGFqguF
this is the webhook id
at first time, ithought ity was the connection but there is no a time oout
I changed the url
maybe, is it better to create a new one instead of change it?
Looking at the latest event we sent you: https://dashboard.stripe.com/test/events/evt_1M6YmoK8ASnZKS7JDoDGoOib
It looks like we sent the event to your server, but you server returned a 500 error.
So you need to check your server logs to understand what happened.
it is not entering the post method
because we hace a system.out.println in the doPost and dont print anything
it does not print anything
Do you see any error logs in your server?
I don't think creating a new webhook will change anything. If the webhook endpoint URL is correct, then there is probably an error in your code, so you should be able to see it in your error logs.
Note that this si what your server is sending to Stripe:
<?xml version="1.0" encoding="UTF-8"?>
<error><message></message><status-code>500</status-code></error>
Your server is returning an error message to Stripe, so you should be able to find more details about that error message on your end.
Then this error message will allow you to understand the issue and fix it.
Hi
are you?
I'm using Event evento = ApiResource.GSON.fromJson(jsonBody, Event.class); tod get the event
EventDataObjectDeserializer dataObjectDeserializer = evento.getDataObjectDeserializer();
evento.getDataObjectDeserializer().getObject() IS EMPTY
but evento.getObject() not
Hello???
Hello, soma had to step out but I can help from here. Was just getting to this thread. Catching up for a minute and will get back to you
Ok, But I need someone please
I tell you
My webhook dont send good the event
I am using: Event evento = ApiResource.GSON.fromJson(jsonBody, Event.class);
and evento has:
So the webhook signature verification is passing but calling dataObjectDeserializer returns empty?
I am not immediately sure. What version of our java library are you using?
8
but it has worked before...
wait
sorry la 11
version is 11
11 and 8
In one server we are using version 8 and in other one,
11
I meant the stripe-java version
https://github.com/stripe/stripe-java
Do you know which version of our client library that you are using?
Ah, so I think that part of the issue is the API version vs the API version that your Stripe-java library uses.
So your account is on 2020-08-27 but this Stripe-java version uses 2022-08-01 https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#2100---2022-08-02
ok, so I need to change the version of webhook?
So to test this out, can you delete your existing endpoint and create one that is pinned to the 2022-08-01 version?
You can change either but doing this would be faster to see now
Long term, it is up to you what API version you want to use for each. You can stay at this 2020 version or upgrade both to use the latest 2022 one. As long as they match you should be able to get the objects properly though
2020-08-27
I created with 2020-08-27 and We are using name: "stripe-java" , version :"21.2.0"
is it ok?
Whoops I sent the wrong link before. You will actually want to set it up for 2022-08-01 for any 21.x.x versions of stripe-java
Oh wait I did send the right URL. But yes either way, set 2022-08-01 for this version
Correct, use 2022-08-01 specifically
I think the mismatch is causing the empty objects
Oh right, I forgot that you can only do account's default or latest version.
So you will need to swap out your stripe-java library
To either 22.0.0
Or 20.136.0
Ok, I will try
Hello
The green one has worked correctly
this is one server
but in the other server, have not worked
and it has not entered the post method
As in things are being sent to your server, but your code that handles the post method is not being triggered?
So when you say, "has not entered the post method", does that mean your code isn't using your equivalent of line 28 in Server.java in this doc?
https://stripe.com/docs/webhooks/quickstart?lang=java
yes
Then it sounds like you may have a firewall or something else that is preventing the event from getting to your server
We have this list of IPs to make sure are allowed for webhook events
Hello ๐
Taking over as Pompey needs to step away soon, let me know if you have any follow up questions ๐
No Thanks!
๐