#frodo-baggins_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1314161517020581910
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- frodo-baggins_webhooks, 18 hours ago, 3 messages
please find the event object received:{
"account": "acct_1QRVbdQDvqbVpjc7",
"api_version": null,
"created": 1733390706,
"data": {
"previous_attributes": null,
"object": {}
},
"id": "evt_3QSbJ0QDvqbVpjc700W1cq3c",
"livemode": false,
"object": "event",
"pending_webhooks": null,
"request": {
"id": "req_BszwK3kB1hI6SV",
"idempotency_key": null
},
"type": "payment_intent.created"
}
๐ happy to help
I can see that we've sent you the object with the API version
would you mind sharing your code?
EventDataObjectDeserializer dataObjectDeserializer = event.getDataObjectDeserializer();
StripeObject stripeObject = null;
if (dataObjectDeserializer.getObject().isPresent()) {
stripeObject = dataObjectDeserializer.getObject().get();
log.info(":::::::::::: stripeObject: {}",stripeObject);
}
this is the code block, it fails on line no 3
what version of stripe-java are you using?
28.0.1
you need to use https://github.com/stripe/stripe-java/releases/tag/v28.1.0 for the 2024-11-20.acacia
API version
ok, let me try that
updated lib to 28.1.0, still same issue: {
"account": "acct_1QRVbdQDvqbVpjc7",
"api_version": null,
"created": 1733391880,
"data": {
"previous_attributes": null,
"object": {}
},
"id": "evt_3QSbbtQDvqbVpjc718Gp6kcE",
"livemode": false,
"object": "event",
"pending_webhooks": null,
"request": {
"id": null,
"idempotency_key": null
},
"type": "charge.updated"
}
java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "this.apiVersion" is null
at com.stripe.model.EventDataObjectDeserializer.apiVersionMatch(EventDataObjectDeserializer.java:211)
at com.stripe.model.EventDataObjectDeserializer.deserialize(EventDataObjectDeserializer.java:115)
at com.stripe.model.EventDataObjectDeserializer.getObject(EventDataObjectDeserializer.java:89)
at com.xsworld.p2jstripeservice.controller.StripeController.eventWebhook(StripeController.java:147)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)
this is the stack trace
taking a look give me a couple of minutes
sure, thanks
what does
payload, sigHeader, endpointSecret
);```
result in?
I am not using endpointSecret as of now, so skipped this part
ok let's do this, I will send you in a minute a link to create a case that will be routed to my team, please try to include a small Java project that contains your webhook endpoint code, and explain if you have any proxy server or anything on the infrastructure that we need to know about in order to try and reproduce and figure out where the problem is coming from. Please include as much details as possible to avoid back and forth conversations since the ticket will be handled asynchronously
Hello @thorn void, we have sent you a direct message, please check it at https://discord.com/channels/@me/1314173772688916481
- ๐The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.