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

code 500 #8

Open
tikismoke opened this issue Jun 1, 2016 · 4 comments
Open

code 500 #8

tikismoke opened this issue Jun 1, 2016 · 4 comments

Comments

@tikismoke
Copy link
Contributor

In advanced page in no error in log i got a code 500 from the admin.

@vdomos
Copy link
Owner

vdomos commented Jun 1, 2016

Can you kill admin and restart with '-f' to see error message when acces to
the advanced page ?

thanks

2016-06-01 17:36 GMT+02:00 tikismoke [email protected]:

In advanced page in no error in log i got a code 500 from the admin.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the
thread
https://github.com/notifications/unsubscribe/ABMwCdWYL5a5Uk6MmVFpxqpH4roQ8sRnks5qHabigaJpZM4IrrrW
.

@tikismoke
Copy link
Contributor Author

Yes got it :)


uests': '1'})
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado-4.3-py2.7-linux-x86_64.egg/tornado/web.py", line 1422, in _execute
    result = self.prepare()
  File "/usr/local/lib/python2.7/dist-packages/tornado-4.3-py2.7-linux-x86_64.egg/tornado/web.py", line 2681, in prepare
    self.fallback(self.request)
  File "/usr/local/lib/python2.7/dist-packages/tornado-4.3-py2.7-linux-x86_64.egg/tornado/wsgi.py", line 277, in __call__
    WSGIContainer.environ(request), start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/var/lib/domogik/domogik_packages/plugin_onewired/admin/__init__.py", line 70, in index
    informations = get_informations(device),
  File "/var/lib/domogik/domogik_packages/plugin_onewired/admin/__init__.py", line 33, in get_informations
    for device in ow.Sensor("/").find(all = True):    #.find(type = "DS18B20"):
  File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 271, in __init__
    self.useCache( self._useCache )
  File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 417, in useCache
    for n in owfs_get( self._usePath ).split( ',' ) ] )
  File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 159, in _get
    raise exUnknownSensor(path)
exUnknownSensor: '/'


Sorry was difficult to catch

@tikismoke
Copy link
Contributor Author

I can reproduce it.
Stop the plugin
Start it=>got to advanced=>Very lots of refresh page (F5)=>code 500.

Or wait a day or two

@tikismoke
Copy link
Contributor Author

It do not solve the real problem but cath the exception and display an error message instead of device list like this:
https://snag.gy/Uxhl4u.jpg

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