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

Bug: stripe: not found #112

Closed
Urahara opened this issue Feb 3, 2024 · 5 comments · May be fixed by #182
Closed

Bug: stripe: not found #112

Urahara opened this issue Feb 3, 2024 · 5 comments · May be fixed by #182
Labels

Comments

@Urahara
Copy link

Urahara commented Feb 3, 2024

Describe the bug

Seems that is necessary to have stripe cli: https://stripe.com/docs/stripe-cli installed, to bypass i removed dev entry from scripts on stripe/package.json file but now i get a black screen when i try to access the UI (and 401 Unauthorized on console log), it's a stripe account mandatory to run project locally?

@projectx/stripe:dev: 
@projectx/stripe:dev: > @projectx/stripe@0.1.0 dev /home/urahara/Projects/projectx/packages/stripe
@projectx/stripe:dev: > stripe listen --forward-to localhost:3000/api/webhooks/stripe
@projectx/stripe:dev: 
@projectx/stripe:dev: sh: 1: stripe: not found
@projectx/stripe:dev:  ELIFECYCLE  Command failed.
@projectx/stripe:dev: ERROR: command finished with error: command (/home/urahara/Projects/projectx/packages/stripe) /home/urahara/.local/share/pnpm/pnpm run dev exited (1)
@projectx/stripe#dev: command (/home/urahara/Projects/projectx/packages/stripe) /home/urahara/.local/share/pnpm/pnpm run dev exited (1)

 Tasks:    0 successful, 2 total
Cached:    0 cached, 2 total
  Time:    496ms 
Failed:    @projectx/stripe#dev

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.

Steps to reproduce

  1. Configure project locally
  2. Run command pnpm run dev

Browsers

No response

Additional context (Is this in dev or production?)

No response

@Urahara Urahara added 🐛 bug Something isn't working 👀 Exploration Pending labels Feb 3, 2024
@bearbricknik
Copy link

bearbricknik commented Feb 4, 2024

Yes, experiencing the same error stack. Weird is that its showing an rk_test key which isnt the one I entered in the .env.

@projectx/stripe:dev: 
@projectx/stripe:dev: time="Sun, 04 Feb 2024 11:05:56 AEDT" level=fatal msg="Error while authenticating with Stripe: Authorization failed, status=401, body={
@projectx/stripe:dev:   "error": {
@projectx/stripe:dev:     "code": "api_key_expired",
@projectx/stripe:dev:     "doc_url": "https://stripe.com/docs/error-codes/api-key-expired",
@projectx/stripe:dev:     "message": "Expired API Key provided: rk_test_*********************************************************************************************U6qM88",
@projectx/stripe:dev:     "type": "invalid_request_error"
@projectx/stripe:dev:   }
@projectx/stripe:dev: }
@projectx/stripe:dev: "
@projectx/stripe:dev:  ELIFECYCLE  Command failed with exit code 1.
@projectx/stripe:dev: ERROR: command finished with error: command 
@projectx/transactional:dev: 
@projectx/transactional:dev: shutting down dev server
www:dev:  ELIFECYCLE  Command failed.
www:dev:  ELIFECYCLE  Command failed.

 Tasks:    0 successful, 3 total
Cached:    0 cached, 3 total
  Time:    9.871s 
Failed:    @projectx/stripe#dev

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.

@Codehagen
Copy link
Member

Yes, i can see the problem. Maybe we need to make the repo a little easier and remove the stripe or make it so we just can have some placeholders @matteobad ?

@bearbricknik
Copy link

Yes, i can see the problem. Maybe we need to make the repo a little easier and remove the stripe or make it so we just can have some placeholders @matteobad ?

Maybe you can tell us what we did wrong? I entered the stripe keys but its not working so maybe its a fault on my / our end.

@bearbricknik
Copy link

bump

@latslats
Copy link

yes please remove stripe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants