#Magic Mage
1 messages ยท Page 1 of 1 (latest)
(I was not specifying and so it defaulted to http)
Also I wish we could instruct the stripe cli to self update.
๐
Hi @eternal fiber is your problem resolved? or you have a follow-up question?
Well I will have to do some more testing to see if the webhook events start going through successfully now.
nope, seems it still fails.
oh wait I forgot to start the application, ofc it would not work.
I noticed that you are using https for localhost
yeah for some reason it defaulted to https for localhost.
oh looks like the test_clock pointed out that the thing auto generates invoices in draft and hopefully it will automatically finalize it.
Now I have to figure out why An unhandled exception of type 'System.Reflection.TargetException' occurred in EntityFramework.SqlServer.dll caused the 500 status code results there.
Can you share with me the request ID?
Oh, the 500 is returned from your webhook endpoint, not from Stripe, right?
yes
it seems that the webhook endpoint is not populating Subscription.Customer object hence the need to get the customer object manually by id.
You can share with me the code if you want me to help with troubleshooting
my guess is something might be making customer become null when I attempt to get customer if the customer.deleted event is sent before subscription.delete that it might be causing the issue.
oh so it works when the customer.deleted event does not get triggered (when it gets auto deleted when a time_clock is deleted) ๐ค.
I was busy with other users.
Did you manage to solve the problem or do you need a second set of eyes on your code?
I think a second set of eyes would not hurt.
it would help pinpoint other possible places where things can go wrong too.
OK, it's a big file, which line shall I start?
I would start with the webhook method (I included the other api functions I use on the site itself that basically handles to whole "let's get the payments element to render in all possible cases.").
OK this one ? https://gist.github.com/AraHaan/ac2a44384d18f63713875c3119a3ff55#file-paymentshelper-netfx472-cs-L145
Also tell me the current problem that you are trying to resolve
nope, the one named PlansController
basically trying to solve all possible places where the webhook might fail.