#frodo-baggins_webhooks

1 messages ยท Page 1 of 1 (latest)

untold ferryBOT
#

๐Ÿ‘‹ 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.

thorn void
#

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"
}

elfin phoenix
#

๐Ÿ‘‹ happy to help

#

I can see that we've sent you the object with the API version

#

would you mind sharing your code?

thorn void
#

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

elfin phoenix
#

what version of stripe-java are you using?

thorn void
#

28.0.1

elfin phoenix
#

API version

thorn void
#

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

elfin phoenix
#

taking a look give me a couple of minutes

thorn void
#

sure, thanks

elfin phoenix
#

what does

                        payload, sigHeader, endpointSecret
                    );``` 
result in?
thorn void
#

I am not using endpointSecret as of now, so skipped this part

elfin phoenix
#

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

untold ferryBOT
#

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.