#ruif90-webhook-errors
1 messages · Page 1 of 1 (latest)
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
Where does the error throw? I don't see any using of s there
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
You've added logging to make sure all of those parameters have values?
whsec_nq5qqAKNHOtUkZfl0oLNsvuNmlNrrsIF
what's that?
_stripeOptions.Events.Secret = whsec_nq5qqAKNHOtUkZfl0oLNsvuNmlNrrsIF
but I can't understand where is it coming from
this is a secret value you shouldnt share, but you can regenerate a new secret fr the endpoint after it works