Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python bot.py #4

Open
cowboysdude opened this issue Feb 7, 2018 · 5 comments
Open

python bot.py #4

cowboysdude opened this issue Feb 7, 2018 · 5 comments

Comments

@cowboysdude
Copy link
Contributor

Used wrong endpoint for microphone debugging
Traceback (most recent call last):
File "bot.py", line 679, in
bot.start()
File "bot.py", line 49, in start
requests.get("http://localhost:8090/clear")
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8090): Max retries exceeded with url: /clear (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3c58e6aa90>: Failed to establish a new connection: [Errno 111] Connection refused',))

@akshaybahadur21
Copy link
Owner

on which port is your smart mirror running. It is just that localhost port is wrong nothing else

@akshaybahadur21
Copy link
Owner

@cowboysdude - any updates on the issue?

@cowboysdude
Copy link
Contributor Author

cowboysdude commented Feb 8, 2018

I have the mirror set to port 8090 but you have to start the bot.py first was my understanding....the mirror runs fine. Just can't start the bot.py....all the ports in the bot.py are set to 8090....but there has to be an issue there because it continues to say it can't start on 8080....so where else is trying to load 8080 from?
Thank you

@cowboysdude
Copy link
Contributor Author

Well apparently this just isn't going to work. There should be no issue changing the port to another port. I've been running my server and mirror on different ports for months with no issue it's only the smart_mirror part that not working....

HTTPConnectionPool(host='localhost', port=8090): Max retries exceeded with url: /microphone?enabled=False (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61a0b9850>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
File "bot.py", line 679, in
bot.start()
File "bot.py", line 49, in start
requests.get("http://localhost:8090/clear")
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8090): Max retries exceeded with url: /clear (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61a0b9890>: Failed to establish a new connection: [Errno 111] Connection refused',))

@Josh4you Josh4you mentioned this issue Apr 12, 2018
@ghost
Copy link

ghost commented Feb 16, 2019

Is there a python3 version of this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants