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

Error: invalid character 'r' looking for beginning of value #1240

Open
pangdaxing23 opened this issue Sep 9, 2024 · 0 comments
Open

Error: invalid character 'r' looking for beginning of value #1240

pangdaxing23 opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pangdaxing23
Copy link

pangdaxing23 commented Sep 9, 2024

Issue

stripe preview prices create --currency=usd --unit-amount=500 --product="cloudly_basic" -d "recurring[interval]"=month

Expected Behavior

Should return a price object in JSON.
It works outside of the preview though, or if I remove the -d "recurring[interval]"=month option.

Traceback

stripe preview prices create --currency=usd --unit-amount=500 --product="cloudly_basic" -d "recurring[interval]"=month --log-level=debug produces:

[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG config.Config.InitConfig: Using profiles file path=/Users/MYUSER/.config/stripe/config.toml
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG config.Config.GetProfilesFolder: Using profiles file path=/Users/MYUSER/.config/stripe
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG cmd.pluginCmd.runPluginCmd: Running plugin...
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG config.Config.GetProfilesFolder: Using profiles file path=/Users/MYUSER/.config/stripe
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG config.Config.GetProfilesFolder: Using profiles file path=/Users/MYUSER/.config/stripe
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG plugins.plugin.Run: negotiated gRPC with plugin process
Operating in MYSANDBOX (wksp_test_************************)...
Error: invalid character 'r' looking for beginning of value
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG Tearing down plugin before exit
[Mon, 09 Sep 2024 18:26:44 EDT] DEBUG pluginTemplateCmd.runPluginCmd: Plugin command 'preview' exited with error: rpc error: code = Unknown desc = invalid character 'r' looking for beginning of value

Environment

macOS 14.1
zsh 5.9 (arm-apple-darwin23.0.0)
stripe version 1.21.5

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

1 participant