Why it hurts
context() is null outside a published App; purchase and entitlement APIs fail, and the diagnosis becomes misleading.
Do this instead
Exercise commerce on the published App URL inside the Cohub shell.
Smell test
If cohub.context() is null, you are not in the App runtime.