coollabsio/coolify · error · RuntimeException

No team found in Coolify for customer: {$customerId}

Error message

No team found in Coolify for customer: {$customerId}

What it means

Error "No team found in Coolify for customer: {$customerId}" thrown in coollabsio/coolify.

Source

Thrown at app/Jobs/StripeProcessJob.php:163

                    } else {
                        VerifyStripeSubscriptionStatusJob::dispatch($subscription)
                            ->delay(now()->addSeconds(20));
                    }
                    break;
                case 'invoice.payment_failed':
                    $customerId = data_get($data, 'customer');
                    $invoiceId = data_get($data, 'id');
                    $paymentIntentId = data_get($data, 'payment_intent');

                    $subscription = Subscription::where('stripe_customer_id', $customerId)->first();
                    if (! $subscription) {
                        // send_internal_notification('invoice.payment_failed failed but no subscription found in Coolify for customer: '.$customerId);
                        break;
                    }
                    $team = data_get($subscription, 'team');
                    if (! $team) {
                        // send_internal_notification('invoice.payment_failed failed but no team found in Coolify for customer: '.$customerId);
                        throw new \RuntimeException("No team found in Coolify for customer: {$customerId}");
                    }

                    // Verify payment status with Stripe API before sending failure notification
                    if ($paymentIntentId) {
                        try {
                            $stripe = app(StripeClient::class);
                            $paymentIntent = $stripe->paymentIntents->retrieve($paymentIntentId);

                            if (in_array($paymentIntent->status, ['processing', 'succeeded', 'requires_action', 'requires_confirmation'])) {
                                break;
                            }

                            if (! $subscription->stripe_invoice_paid && $subscription->created_at->diffInMinutes(now()) < 5) {
                                SubscriptionInvoiceFailedJob::dispatch($team)->delay(now()->addSeconds(60));
                                break;
                            }
                        } catch (\Exception $e) {
                        }

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Jobs/StripeProcessJob.php:163 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17). Data as JSON: /api/errors/0a178591cdbeed14. Report an issue: GitHub.