#bmizerany1234

1 messages ยท Page 1 of 1 (latest)

flint kindleBOT
short mica
#

Hi ๐Ÿ‘‹

What is the stripe accounts retrieve call doing?

restive pilot
#

Getting the current logged in account ID

short mica
#

But the Stripe CLI holds that information already. Can you try running

stripe login

and then stripe apps start

restive pilot
#

I have tried that already

#

The start command only says "hit enter to open a browser" but there is no browswer on that machine. I learned a bit back here in Discrod from a fine support person that the URL it should take me to is the one you see above. So I took my account ID and went to the URL

#

Last time, that worked

#

This time, it does not

#

My new Stripe app isn't showing up in the dashboard, and am I back to the same odd message I got last time

#

"stripe app start"

#

Whic is literally already running

#

for that account

short mica
#

What is the context in which the app is executing, since you say there is no browser on that machine?

restive pilot
#

Let's call it an Ec2 instance

#

I dev on an EC2 instance

#

not unlike working in Github spaces/what-have-you

#

I get to "stripe apps start" and get the ouput I posted above

#

BUT I have not UI so hitting "enter" does nothing

#

and unforutually the CLI does not output the URL for those of use without a UI

#

This time I'm armed with a little something left over from the last time this happened

#

That URL

#

but now it doesn't work

#

not in Safari, and not in Chrome (all up-to-date)

short mica
#

Right, because the CLI functionality is designed to connect to a localhost endpoint which is not forwarded

restive pilot
#

I was assuming the CLI tunneled out

short mica
#

The browser makes a network call to a localhost URL, as far as I know

restive pilot
#

You're saying that Stripe (in dev mode) doesn't tunnel, but instead iFrames in my app pointed at localhost?

#

ah yeah okay

#

let me try to portforward to the vm from the host

short mica
#

The localhost URL used is localhost:4242

restive pilot
#

Thank you. Trying now

#

So close. Do you know if it's possible to make it bind to 0.0.0.0:4242?

#

intead of locking it down to localhost?

short mica
restive pilot
#

Thank you for your help

short mica
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

restive pilot
#

Okay

#

Still not workign even with port forwading to a proxy

#

That is a curl (on the MacOS host) to its very own localhost:4242 which socat forwards to vm:8080 which is a reverse proxy listening on 0.0.0.0:8080 which HTTP proxies to localhost:4242 (e.g. stripe apps start) on the vm

#

I confirm it's all wired up right

#

but in chrome and safari, no dice... still do not see the app

short mica
#

I think this may be an issue with how the app CLI plugin creates the host. I did say you cannot get it to listen to 0.0.0.0. It must be localhost. I would recommend filing a GH issue

restive pilot
#

It is listening on localhost

#

my proxy binds to 0.0.0.0 and fowards to localhost:4242

short mica
#

Okay. I would still recommend you file this as a detailed GH Issue

restive pilot
#

Nto sure its worth it. 200+ issues and counting

short mica
#

It's the primary means by which the Apps team gets developer feedback

restive pilot
#

Got it working. The enable-preview link has to be in Chrome. Dope.

#

Thank you again