#Opino-webhook
1 messages ยท Page 1 of 1 (latest)
that could be many reason
You have a .NET server listen to webhook?
Did you setup the webhook secret?
I amm using AWS for publishing
It's mostly your env variable endpointSecret might not be loaded correctly
I am using .net mvc and I use Request.Inputstrem
When Itried to use Request.Body it's giving error
You sure that's endpoint secret, not secret key? They are different
ok, so where did it error? Can you share your full code?
when I check locaaly
is there anything I have to do with AWS coz I publish this code in aws
any permission needed?
If your code works in local then its logic shouldn't have any problem
I can think of, on AWS you don't have the endpoint secret loaded properly
since each platform has different way to store and retrieve environment variables
what should i do now?
the next suspicious is
var json = await new StreamReader(HttpContext.Current.Request.InputStream).ReadToEndAsync();
You should add more debug on endpointsecret, and json, then confirm their value from your AWS log, then compare with what is output from your local
When I use Request.Body then it's giving error
Your local server is using Request.Body?
no
I have used code which is availabe for Stripe previous versions
because InputStream and Body are same
You sure? I am not familiar with .NET, but did you print both of them in local, and AWS, and seeing they are identical?
I am asking specifically since this is the part mostly caused verification error, and 400 from our experience
yes
When I use Request.Body then it's giving error
But when you used Body it errored, and when you used InputStream it worked?
Stripe log says TLS error
for what case?
TLS error is a different error and normally it happens before the request ever reach your AWS endpoint
๐ I know it's still undergoing on debug, but I need to step down for the day. If you have questions feel free to ask in the channel, or ask to reopen this thread