#asadahmad27

1 messages · Page 1 of 1 (latest)

tired mistBOT
swift berry
#

?

long hearth
#

Please be patient

#

Can you start by sharing your webhook endpoint code?

#

I'd guess that your framework/host is parsing the request body unbeknownst to you. The signataure verification method expects the raw request payload, not JSON

swift berry
#

getting a json in rawBody

long hearth
#

Which hosting provider is this?

#

Looks like Firebase/GCloud or something?

swift berry
#

yes firebase

#

this is what coming in rawBody

long hearth
#

I'd guess it's being parsed and malformed when you're logging the value

swift berry
#

is there could be any other reason for this error?

long hearth
#

Well, the whSec variable could jsut be the wrong value

#

It's either one of those two things

swift berry
#

ok i saw the link. i'm doing the exact same , passing the rawbody as it is]

long hearth
#

You have a log line though, that will 'read' the boidy and potentially malform it. Remove the log line

swift berry
#

Ok let me do that