Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

wrong host in line 21main.py #9

Open
seraphyn opened this issue Jun 18, 2014 · 1 comment
Open

wrong host in line 21main.py #9

seraphyn opened this issue Jun 18, 2014 · 1 comment

Comments

@seraphyn
Copy link

There's the wrong host in line 21:
app.run(host='pluss.aiiane.com', port=54321, debug=True)
so there won't be the right host for listenling as configured in pluss.cfg.

The following error will be:

python main.py 
 * Running on http://pluss.aiiane.com:54321/
Traceback (most recent call last):
  File "main.py", line 21, in <module>
    app.run(host='pluss.aiiane.com', port=54321, debug=True)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
    run_simple(host, port, self, **options)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 706, in run_simple
    test_socket.bind((hostname, port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

After changing the line 21 to the same host like in pluss.cfg copied from example
[server]
host=127.0.0.1:54321

It will run without any error.

@ayust
Copy link
Owner

ayust commented Jun 23, 2014

Looks like that was missed when I did the rewrite of pluss. :) Definitely a bug.

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

No branches or pull requests

2 participants