#ruif90-webhook-errors

1 messages · Page 1 of 1 (latest)

chilly monolith
#

Can you say more about the problem? What do you mean null exceptions?

manic temple
#

when I'm constructing the object I'm getting: Message": "String reference not set to an instance of a String. (Parameter 's')

but everything that I?m passsing to the method is not null

#

I'm passing the following from your side:

        var eventJson = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
        var eventSignature = Request.Headers["Stripe-Signature"];

plus the secret which is not null either

chilly monolith
#

Where does the error throw? I don't see any using of s there

manic temple
#

somewhere her

#

EventUtility.ConstructEvent(eventJson, eventSignature, _stripeOptions.Events.Secret)

#

i don't know, it's your method, not mine

#

lol

#

codewise there are no changes there in months, but it just started to throw an error

chilly monolith
#

You've added logging to make sure all of those parameters have values?

manic temple
#

whsec_nq5qqAKNHOtUkZfl0oLNsvuNmlNrrsIF

#

what's that?

#

_stripeOptions.Events.Secret = whsec_nq5qqAKNHOtUkZfl0oLNsvuNmlNrrsIF

#

but I can't understand where is it coming from

chilly monolith
#

this is a secret value you shouldnt share, but you can regenerate a new secret fr the endpoint after it works