Badget icon indicating copy to clipboard operation
Badget copied to clipboard

Bug: stripe: not found

Open Urahara opened this issue 1 year ago • 5 comments
trafficstars

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/[email protected] 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 avatar Feb 03 '24 22:02 Urahara

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.

bearbricknik avatar Feb 04 '24 00:02 bearbricknik

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 ?

Codehagen avatar Feb 04 '24 09:02 Codehagen

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 avatar Feb 04 '24 22:02 bearbricknik

bump

bearbricknik avatar Feb 07 '24 08:02 bearbricknik

yes please remove stripe

latslats avatar Feb 13 '24 06:02 latslats