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

Data strings don't work in preview plugin #1234

Open
krystof-k opened this issue Aug 31, 2024 · 1 comment
Open

Data strings don't work in preview plugin #1234

krystof-k opened this issue Aug 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@krystof-k
Copy link

krystof-k commented Aug 31, 2024

I guess the plugin is not part of this repo, so if this isn't the right place to report it please tell me where is.

Using data strings for operations in sandboxes using stripe preview doesn't work:

stripe preview use "Kryštof dev"
✔ Remaining on Kryštof dev. This is a sandbox, no live data will be affected.

stripe preview products list
Operating in Kryštof dev (wksp_test_6R3…)...
{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/products"
}

stripe preview products create -d 'name=test'
Operating in Kryštof dev (wksp_test_6R3…)...
Error: invalid character 'a' in literal null (expecting 'u')

Using option syntax it works (but that is not viable for nested objects):

stripe preview products create --name test   
Operating in Kryštof dev (wksp_test_6R3…)...
{
  "id": "prod_QlR97hKZph6ct6",
  "object": "product",

}

Without preview it works:

stripe products create -d 'name=test'        
{
  "id": "prod_QlR88YgZONPoFR",
  "object": "product",

}

macOS, Stripe CLI version 1.21.3.

@krystof-k krystof-k added the bug Something isn't working label Aug 31, 2024
@krystof-k krystof-k changed the title Data strings doesn't work in preview plugin Data strings don't work in preview plugin Sep 3, 2024
@pangdaxing23
Copy link

Seems this is the same bug as #1240

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