#michael-1219_webhooks

1 messages ¡ Page 1 of 1 (latest)

tropic deltaBOT
#

👋 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/1301837827641708544

📝 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.

ocean latch
#

hi there

#

i have communicate with you about this problem this week

#

the version has been pinned,

#

but it not work

rough summit
#

hi! can you elaborate, what specific problem/error are you running into right now?

ocean latch
#

you can see what happen

#

evt_1QGGZhK4vaWYtFnyvRuEoWg2

#

you can find the code snipping in our past chat

#

the stripe-java version is 24

rough summit
#

why does your server return the string "No body"?

ocean latch
#

I thought may becasue mismatch api version

#

but i pinned webhook version to 2023-8-16, api version 2024-6-20, SDK 24

#

do ssl essention for this process?

#

I want to try the call-back in local environment, but ssl havent implment locally

#

are you still there

rough summit
#

yes I'm still here

#

if you want to test locally that is what stripe-cli and stripe listen --forward-to are for

#

but you can't control the API version with that so it won't help much here

ocean latch
#

ok, since I have try it via cli locally

#

but still some issue occer

#

occur

#

If possible, locate the problem in server might be what i really earge right now

rough summit
#

first thing would be checking to determine why your server code would return the string "No body" and then adding logs around that

#

actually no

ocean latch
rough summit
#

"No body" just means you didn't send a response, which is fine

#

so the question really is why your server returns a HTTP 400 instead of 200

ocean latch
rough summit
#

if you log event.getApiVersion() before trying to deserialise , what is it?

ocean latch
#

you mean i shout print the value of that before deserialise

rough summit
#

yes

ocean latch
#

version is 2023-8-16

#

check by that method

rough summit
#

if you log the payload string of the incoming request what is that? (the value you pass to Webhook.constructEvent )

what happens if you just use getDataObjectDeserializer().deserializeUnsafe() ?

tropic deltaBOT
ocean latch
#

some call-back is success

#

like this

rough summit
#

yeah I think it's because you still receive retries of old events from the old endpoints, or you use the same URL for multiple Stripe webhook endpoints, or something like that