Error: invalid character 'r' looking for beginning of value
Opened this issue · 0 comments
pangdaxing23 commented
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