#michael-1219_webhooks

1 messages ยท Page 1 of 1 (latest)

hearty roseBOT
#

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

๐Ÿ“ 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.

turbid schooner
#

hi there

#

you can see my thread in the past

#

the webhook version pined to either 2024.6.20 or 2023.10.8, are not work

quick lichen
#

It's kind of lengthy and not sure what is your current latest state. Would be appreciated if you could put a summary

turbid schooner
#

the method of getDataObjectDeserializer work as intended, I got the info from call-back

#

but the normal no, not

#

I've been told that this problem always come from version mismatched

#

but pined to versino your leagues told me, do not resolve the problem

#

you can see the sniping of this part

#

I even cant reach this line of code

#

it is null

#

hello

#

what do you think should I go forward

#

๐Ÿ˜”

quick lichen
#

Hmm not entirely sure but what do you mean by this?

but the normal no, not

turbid schooner
#

the normal one means this part of code

#

sepcificly this one

#

comparing to unsafe one

quick lichen
#

So

event.getDataObjectDeserializer()

work, but

event.getDataObjectDeserializer().getObject().get().toJson()

doesn't work?

turbid schooner
#

yes

#

content is null - event.getDataObjectDeserializer().getObject().get().toJson()

quick lichen
#

Sure but why do you need the later code? If the first code work, why wouldn't just go with it?

turbid schooner
#

sorry for confusing

#

I mean this part of code work as intented

#

but this part do not

#

can you tell me the difference between unsafeDeserializer(), and Deserializer()?

quick lichen
#

Your 2 images are the same, aren't they?

turbid schooner
#

this is the one do not work as intented

#

I am sorry, Qaq

#

so the escape from if, going into else

#

the unsafeDeserializer(), method

quick lichen
#

Ah you mean you need to use deserializeUnsafe()?

turbid schooner
#

yes, because Deserializer(), do not work as intented

#

I am looking forward to use Deserializer()

#

Because, I thought, the unsafe one is unsafe

#

do a zoom for you to see my screen help?

quick lichen
#

Sorry we can't provide zoom support here

turbid schooner
#

thats fine

quick lichen
#

If you use event.getDataObjectDeserializer().getObject().get(), what value do you see exactly

#

(removing toJson())

turbid schooner
#

null

#

wait

#

No signatures found matching the expected signature for payload

#

this is what i got

quick lichen
#

That's before that line

#

Signature is the error on constructEvent

#

It should work for you

turbid schooner
#

you mean the problem came from "constructEvent"

#

I check the doc first, lol

#

I thought my code is as same as the code in the doc

#

Before checking

#

and I construct my code follow the doc by the way

#

hello

#

evt_1QI46FK4vaWYtFnypg8XsG20

#

you can see the event

#

are you still there?

#

looking forward your help !!!

quick lichen
#

Still here, sorry

#

So you used the exact same code as the Doc?

#

What error do you have for now?

turbid schooner
#

yes

#

still No signatures found matching the expected signature for payload

quick lichen
#

Do you have multiple webhook endpoint?

#

Are you using the exact endpoint secret configured on your Dashboard here?

turbid schooner
#

When I use StripeObject object = event. GetDataObjectDeserializer () deserializeUnsafe (); When access to the event. The getDataObjectDeserializer () when I use the data in the event the getDataObjectDeserializer (). The getObject (). The get (); The console will report an error, and the error message is No value present

quick lichen
#

Sorry I didn't understand the last sentence

turbid schooner
#

sorry, I mean the signiture problem has been solved. The problem is "no value present' when using method getDataObjectDeserializer (). (what is different when using deserializeUnsafe ()

quick lichen
#

Glad to hear Signature error is resolved.

#

When you were using deserializeUnsafe(), you also used it after getDataObjectDeserializer(), correct?

#

Could you clarify again, which is working and which is not working (suppose there is no Signature Error any more)

turbid schooner
#

the problem might come from get()

#

i thought

#

I cant get() any value

#

I dont know why

#

๐Ÿ˜”

#

๐Ÿค“

#

hellp

quick lichen
#

Sorry it's still confusing. Which is working and which is not working?

#

Given that you use the Stripe example code, and no Signature error?

turbid schooner
#

yes

quick lichen
#

Can you screenshot your current code, and put a breakpoint on the deserializeUnsafe() line? Which value can you inspect?

turbid schooner
#

can you tell be the difference bewteen deserializeUnsafe() and deserialize() ?

quick lichen
turbid schooner
#

the chinese log may make you confused

#

but if you take a deeper sight, you can find they are same

quick lichen
#

I see a lot of metadata and orderId. I meant you could just try the exact code from our Doc, no edit, first to see if it works

hearty roseBOT
turbid schooner
#

can you tell me the different bewteen normal one and unsafe one

#

deserializeUnsafe()

quick lichen
#

Please try the exact code from our Doc first, before thinking of deserializeUnsafe

turbid schooner
#

I have done that

#

@proper temple @quick lichen

proper temple
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

turbid schooner
#

you can see the problem in the video

#

can you tell me the different bewteen normal one and unsafe one

proper temple
#

please give me a couple of minutes to go over the whole thread and catch up

turbid schooner
#

awesome

#

are things going well?

proper temple
#

yes

#

would you mind telling me what version of the Java SDK are you using?

turbid schooner
#

24

proper temple
#

full SDK version please

turbid schooner
#

24.0.0

#

i dont think this problem come from api version, to be honest

#

Previously, your team had guild he to check them

proper temple
#

it's not the API version I'm asking about

#

I'm asking about your stripe-java SDK version

#

btw can you share the event ID as well?

turbid schooner
#

we_1QHg8mK4vaWYtFnyiB1mLmgD

#

evt_1QI4KPK4vaWYtFny7qnhG7ww

#

i have tried : 2 version of webhook

proper temple
#

I would like to just cover my basics if you don't mind

turbid schooner
#

can you tell me the different bewteen normal one and unsafe one

#

awesome

#

can you answer this question? :can you tell me the different bewteen normal one and unsafe one

proper temple
#

you should never have to use the unsafe one

#

the version of both of your webhook endpoints are incorrect

#

2023-10-16 this the version that you need to use

#

instead you have 2023-08-16 and 2024-06-20

#

create a new webhook endpoint with the correct version then try again

turbid schooner
#

ok

#

i will try it