# Websettings error 500: Internal Server Error

**URL:** <https://discourse.mopidy.com/t/websettings-error-500-internal-server-error/2835>\
**Category:** Misc\
**Created:** [October 24, 2018, 9:22pm UTC](https://discourse.mopidy.com/t/websettings-error-500-internal-server-error/2835 "2018-10-24T21:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juno](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/juno/32/1255_2.png) [@Juno](https://discourse.mopidy.com/u/Juno)\
**Post date:** [October 24, 2018, 9:22pm UTC](https://discourse.mopidy.com/t/websettings-error-500-internal-server-error/2835/1 "2018-10-24T21:22:38Z")

</div>

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/](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
