Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe Daemon Start Failure in VSCode Stripe Extension #822

Open
felixhaeberle opened this issue Feb 8, 2024 · 0 comments
Open

Stripe Daemon Start Failure in VSCode Stripe Extension #822

felixhaeberle opened this issue Feb 8, 2024 · 0 comments

Comments

@felixhaeberle
Copy link

felixhaeberle commented Feb 8, 2024

Description

Encountered an error with the Stripe extension for Visual Studio Code when attempting to start or restart the Stripe daemon. The process fails due to an inability to locate the CLI path, preventing the daemon from initializing as expected.

Error Details

  • Type: Error
  • Message: Failed to get CLI path
  • Location: stripeDaemon.ts in the function t.StripeDaemon.config [as startDaemon] at line 96:13
  • Handled: No

Stack Trace

  • Failure occurs in /home/gitpod/.vscode-server/extensions/stripe.vscode-stripe-2.0.14/src/daemon/stripeDaemon.ts at:
    • startDaemon at line 96:13
    • restartDaemon at line 83:10
    • setupClient at line 51:12
  • Additionally, involved in refreshing webhook endpoints in stripeWebhooksView.ts at line 40:3.

Potential Issue

The error indicates that the Stripe extension is unable to locate the Stripe CLI executable on the system. This is a critical step for the daemon's operation, as it relies on the CLI for various tasks including managing webhooks.

Steps to Reproduce

  1. Install the Stripe extension (version 2.0.14) in VSCode on an Ubuntu Linux 22.04 system.
  2. Attempt to start or interact with the Stripe daemon via the extension's provided commands or during an automatic operation triggered by the extension.

Expected Behavior

The Stripe daemon should successfully locate the Stripe CLI path, initialize, and start without errors, allowing the user to manage Stripe events and webhooks directly from VSCode.

Actual Behavior

The extension fails to start the Stripe daemon due to an error in locating the Stripe CLI path, resulting in an unhandled error and potentially impacting the development workflow that relies on Stripe functionalities within VSCode.

Suggested Fix

  • Ensure the Stripe CLI is correctly installed and accessible on the system path. Providing clear documentation or error messages on how to install or configure the Stripe CLI could help resolve such issues.
  • Improve error handling in the Stripe extension to provide more informative feedback when the CLI path cannot be located, possibly suggesting troubleshooting steps.
  • Implement a configuration option within the Stripe extension settings that allows users to manually specify the path to the Stripe CLI if automatic detection fails.

Environment

  • Node Version: v18.15.0
  • Ubuntu Linux Version: 22.04
  • Architecture: x64
  • Environment: production
  • Error Level: error
  • Error Mechanism: onunhandledrejection
  • OS: Ubuntu Linux 22.04
  • Runtime: Node v18.15.0
  • Release: 1.32.0
Bildschirmfoto 2024-02-08 um 10 48 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant