Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

FroeMic
Copy link
Contributor

@FroeMic FroeMic commented Sep 21, 2025

Important

Fix 500 errors in dev by returning null when Stripe client is uninitialized in BillingUsageChart.tsx and cloudBillingRouter.ts.

  • Behavior:
    • In BillingUsageChart.tsx, return null if usage.data is null to avoid errors when STRIPE_SECRET_KEY is not set in dev mode.
    • In cloudBillingRouter.ts, log a warning and return null in getUsage if STRIPE_SECRET_KEY is not set and NEXT_PUBLIC_LANGFUSE_CLOUD_REGION is "DEV".
  • Logging:
    • Add warning log in cloudBillingRouter.ts when STRIPE_SECRET_KEY is not set in dev environment.

This description was created by Ellipsis for 9d09f4e. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Sep 21, 2025
@FroeMic FroeMic enabled auto-merge September 21, 2025 11:00
@dosubot dosubot bot added the auto-merge This PR is set to be merged label Sep 21, 2025
@FroeMic FroeMic added this pull request to the merge queue Sep 21, 2025
Merged via the queue into main with commit 6326a6d Sep 21, 2025
30 checks passed
@FroeMic FroeMic deleted the michael/lfe-6830 branch September 21, 2025 11:08
@dosubot dosubot bot removed the auto-merge This PR is set to be merged label Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant