ProcessReceipt + InvokeClient breaks error log

I’ve just come across a weird bug after wondering why I’m not seeing an error log when processing a developer product purchase. I just made a test place (edit access should be public) to isolate this bug. Here is the server side script:

Here is the client side script:

When I press play and purchase the developer product, this is the output:

As you can see, the error(‘after invoke error’) doesn’t show up and the script stops there.

I’m using a Mac.

Expected behavior

The error(‘after invoke error’) should show up in the output.

1 Like

Sorry for the late response! Found someone to check this out. We’ll get back to you when we have an update.

1 Like

Thank you for this report. Unfortunately, this isn’t something we’re planning to change.
When you call InvokeClient within ProcessReceipt, it suppresses the error() messages. You can use warn as an alternative. You can also wrap the invokeClient within a coroutine if you want to throw error.