Badget
Badget copied to clipboard
Bug: stripe: not found
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
- Configure project locally
- Run command
pnpm run dev
Browsers
No response
Additional context (Is this in dev or production?)
No response
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.
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 ?
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.
bump
yes please remove stripe