Websettings error 500: Internal Server Error


#1

How should I make the setting plugin functioning?

Installed the websettngs plug,
Changed filesetting for the config file, however still no luck.
Looking in the (part of) log below, it would be nice to show the ini filename, and quote the affected line.
Also the ‘UnboundLocalError: local variable ‘iniconfig’ referenced before assignment’ should not occur…

2018-10-24 23:11:03,559 ERROR [613:HttpServer] mopidy_websettings: Could not load ini file! Parsing failed with several errors.
First error at line 50.
2018-10-24 23:11:03,573 ERROR [613:HttpServer] tornado.application: Uncaught exception GET /settings/ (1.30.1.96)
HTTPServerRequest(protocol=‘http’, host=‘1.30.1.216:6680’, method=‘GET’, uri=’/settings/’, version=‘HTTP/1.1’, remote_ip=‘1.30.1.96’, headers={‘Accept-Language’: ‘en-US,en;q=0.5’, ‘Accept-Encoding’: ‘gzip, deflate’, ‘Host’: ‘1.30.1.216:6680’, ‘Accept’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8’, ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0’, ‘Dnt’: ‘1’, ‘Connection’: ‘keep-alive’, ‘Referer’: ‘http://1.30.1.216:6680/mopidy/’, ‘Upgrade-Insecure-Requests’: ‘1’})
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/tornado/web.py”, line 1467, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “/usr/local/lib/python2.7/dist-packages/mopidy_websettings/init.py”, line 95, in get
configValue = iniconfig.get(item, {}).get(subitem, None)
UnboundLocalError: local variable ‘iniconfig’ referenced before assignment
2018-10-24 23:11:03,588 ERROR [613:HttpServer] tornado.access: 500 GET /settings/ (1.30.1.96) 631.60ms