Open jnkb opened 4 years ago
Well that just doesn't make any sense at all. I have no idea why that wouldn't work. Do other stripe
CLI functions work in the Windows Terminal?
If you have WSL installed, could you try running the following for me?
cmd.exe
(not in the Windows Terminal)wsl
in that legacy console windowcmd.exe
from within wsl.stripe listen --forward-to ...
) again in this window.This might help narrow the problem down to Conpty vs the entire Windows Terminal.
Same Problem in the wls cmd:
I just found out that it seems to be an encoding problem. Typing it in manually, it works. Copy & Paste does not work depending on the source.
Try copy & paste from the txt:
Below the byte arrays of the different inputs. The space after forward-to is different: 32 vs. 194,160. Don't know how this happend.
[...]
n 110 110
32 32
- 45 45
- 45 45
f 102 102
o 111 111
r 114 114
w 119 119
a 97 97
r 114 114
d 100 100
- 45 45
t 116 116
o 111 111
32 194
h 104 160
t 116 104
t 116 116
p 112 116
s 115 112
: 58 115
/ 47 58
/ 47 47
l 108 47
o 111 108
c 99 111
a 97 99
l 108 97
h 104 108
o 111 104
s 115 111
t 116 115
created with with
var working = "stripe listen --forward-to https://localhost:44391/api/StripeWebHooks";
var notWorking = "stripe listen --forward-to https://localhost:44391/api/StripeWebHooks";
var bytesW = Encoding.UTF8.GetBytes(working);
var bytesNW = Encoding.UTF8.GetBytes(notWorking);
for (int i = 0; i < working.Length; i++)
{
Console.WriteLine(working[i] + "\t\t" + bytesW[i] + "\t\t" + bytesNW[i]);
}
Oh, excellent work with that!
The 160 is probably a  
, IIRC there's some conhost code that just translates those on paste.
The 194 though, no idea what that's doing in there...
Environment
Steps to reproduce
Download Stripe CLI (https://github.com/stripe/stripe-cli/releases/tag/v1.4.1) after "stripe login" (not sure if needed, i was already logged in) using the command "stripe listen --forward-to https://localhost:44391/api/StripeWebHooks" works on cmd.exe, but not in terminal
Expected behavior
should work as in cmd.exe
Actual behavior
output "unknown flag: --forward-to https://localhost:44391/api/StripeWebHooks"
Screenshot with outputs: