#TomGullen

1 messages · Page 1 of 1 (latest)

uneven rapidsBOT
summer pivot
#

Hello thanks for looking!

worldly wraith
#

Of course. Trying to think of what this might be

#

Can you access other data on that invoice or in other events in general?

summer pivot
#

one moment

#

invoice.AccountName.BasicLog();
invoice.Attempted.ToString().BasicLog();
invoice.Status.BasicLog();
invoice.PeriodEnd.ToString().BasicLog();

#

These all work

#

(Just log them to a txt file)

#

Scirra Ltd

True

paid

19/12/2022 14:31:56

worldly wraith
#

Interesting. And just this subscription ID is not available despite being available in the event

summer pivot
#

Looks that way, the actual error is:
The resource ID cannot be null or whitespace.
Parameter name: id

worldly wraith
#

Just as a quick check, does your code show the ID for the correct invoice here? (in_1MGkNkIq2o1LAhVTEo8afr3a)

summer pivot
#

If I log invoice.Id I get in_1MGkNkIq2o1LAhVTEo8afr3a

#

Sorry for clarity full error message:

#

The resource ID cannot be null or whitespace.
Parameter name: id

Stripe.net

at Stripe.Service`1.InstanceUrl(String id) in /_/src/Stripe.net/Services/_base/Service.cs:line 579
at C3.Code.Helpers.AssetStore.PaymentProcessors.Stripe.Invoices.OnInvoicePaymentSucceeded(Invoice invoice) in C:\Users\Tom\Dropbox (Scirra Ltd)\Tom\Websites\Construct SVN\Web\branches\dev\Source\C3Alpha2\Code\Helpers\AssetStore\PaymentProcessors\Stripe\Invoices.cs:line 25
at C3.Code.Helpers.AssetStore.PaymentProcessors.Stripe.Webhook.HandleAssetStoreWebhookMessage(String json) in C:\Users\Tom\Dropbox (Scirra Ltd)\Tom\Websites\Construct SVN\Web\branches\dev\Source\C3Alpha2\Code\Helpers\AssetStore\PaymentProcessors\Stripe\Webhook.cs:line 21

#

My apologies

#

.NET is showing the wrong line for the error

#

This isn't a bug

#

Really sorry, was scratching my head for ages, .NET shows the line to get subscription ID but the error is actually like 20 lines down

worldly wraith
#

Oh interesting thank you. I was checking in to your webhook config and whatnot. So you know how to fix this or at least your next steps here?

summer pivot
#

Yes I do thank you

#

Really sorry for your time there

worldly wraith
#

Happy to help debug that error as well

#

No worries, glad you could find what was happening

summer pivot
#

It's OK I got it from here

#

You guys are great thank you again hope you have a good day!

worldly wraith
#

Of course, have a good day yourself!