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

--api-version is unknown #1201

Open
paymog opened this issue Jun 10, 2024 · 2 comments
Open

--api-version is unknown #1201

paymog opened this issue Jun 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@paymog
Copy link

paymog commented Jun 10, 2024

The more information we have the easier it is for us to help. Feel free to remove any sections that might not apply

Issue

Can't se the api version

Expected Behavior

I expect to be able to set the api version

Steps to reproduce

 3:42PM /Users/paymahn/code/goldsky/graph-tools/packages/cli pat/cli-subgraph-deploy-with-tag ✭
 ❮❮❮ stripe products search --query="name:'scale'"
{
  "error": {
    "message": "Search is not supported on api version 2017-08-15. Update your API version, or set the API Version of this request to 2020-08-27 or greater.",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_tlrAjqvwJkXRWK?t=1718052122",
    "type": "invalid_request_error"
  }
}
 3:42PM /Users/paymahn/code/goldsky/graph-tools/packages/cli  ✘ 130 pat/cli-subgraph-deploy-with-tag ✭
 ❮❮❮ stripe products search --query="name:'scale'" --api-version="2020-08-27"
unknown flag: --api-version
 3:42PM /Users/paymahn/code/goldsky/graph-tools/packages/cli  ✘ 1 pat/cli-subgraph-deploy-with-tag ✭
 ❯❯❯ stripe --version
stripe version 1.19.5

Environment

macos

@paymog paymog added the bug Something isn't working label Jun 10, 2024
@paymog
Copy link
Author

paymog commented Jun 10, 2024

turns out I have to use --stripe-version. I've found other issues which mention an api-version flag. I guess that changed recently?

@tomer-stripe
Copy link
Collaborator

Hey @paymog, I might've typo'd it in the other issue. --stripe-version should be correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants