torproject / stem

Python controller library for Tor
https://stem.torproject.org/
GNU Lesser General Public License v3.0
279 stars 76 forks source link

Not receiving any Stream Events #79

Closed aaronst closed 4 years ago

aaronst commented 4 years ago

I tried using the code from exits_used.py, but I'm not getting any output. I removed any conditions, and it appears I don't get any Stream events at all. My torrc file only specifies the control port, and I'm using the same curl command provided with the script. I'm running Python 3.8.6 and stem==1.8.0. Any help would be appreciated, thanks!

atagar commented 4 years ago

Hi Aaron. Are you getting the same output from curl as the example (ie. is the curl request completing successfully)?

aaronst commented 4 years ago

Good timing, I finally figured it out. My callback function was causing an error, which has happening silently. So events were coming in, I just wasn't seeing them.