I'm trying to add support for ephemeral hidden services to OnionShare. They'll solve a wide variety of problems related to OnionShare using a system Tor instead of Tor browser, and running in environments like Tails or Whonix. I'd rather never write the hidden service info to disk anyway.
I noticed that Tor Browser 5.5a2 comes with Tor 0.2.7.2-alpha, so it's easy to test. But so far I'm not having any success, at least with using stem.
Before I open a bug report, either against stem or against tor, am I doing this right? I've made a simple test project:
https://github.com/micahflee/ephemeral-hs-test
It successfully appears to create the hidden service, but it never succeeds in connecting to itself. I also can't connect to it using Tor Browser.