#tymm

1 messages · Page 1 of 1 (latest)

wild boneBOT
stray moon
#

Hi there!

#

What's the exact error message you see on your backend?

marsh cave
#

No value present

#

when trying to access the callback object

stray moon
#

Which value? Can you give more context?

#

Can you copy paste the full error message? And also your code?

marsh cave
#

im using webhook, and the code cant seem to decrypt the event object. it is working fine previously when im using the local listener, so it could be that the secret im using is wrong can u help me to verify that?

stray moon
#

Can you check your backend server logs, there should be some clear error message there that explain what exactly is the issue. Without this information, it's difficult to help.

wild boneBOT
marsh cave
#

on the server side the error is No value present when trying to event.getDataObjectDeserializer().getObject().get();

low venture
#

that can happen if you have changed your API version or your version of stripe-java recently, basically if the event the code is receiving is in an API version that the Java library can't accept.

marsh cave
#

i see, i can see the version that i want listed in the dashboard. how do i change to that?

#

i want the 11-15 version

low venture
#

you can't, it's not possible to downgrade(though can write to support and they can do it)

#

so the options would be

  • update the stripe-java lbrary to the latest version of itself that supports the latest API version
  • create your webhook endpoint pinned to the 2022 verson(will share instructions for that in a bit)
  • use the unsafe deserilaizer
  • write to support to downgrade your account's default API version(but often if you ask, we will push you to do option 2 instead)
marsh cave
#

how do i do that