I tried to set the region setting to Indianapolis, and got a failure:
ValueError('too many values to unpack (expected 2)',)
. I used Detroit instead, and that worked fine, so I think it’s a bug with Indianapolis.
See below stack:
ValueError('too many values to unpack (expected 2)',)
Stack trace
Traceback (most recent call last):
File "/reporting.py", line 93, in __call__
File "/backend_data.py", line 86, in __call__
File "/bottle_i18n.py", line 68, in __call__
File "/bottle.py", line 979, in __call__
File "/bottle.py", line 954, in wsgi
File "/bottle.py", line 862, in _handle
File "/bottle.py", line 682, in mountpoint_wrapper
File "/bottle.py", line 979, in __call__
File "/bottle.py", line 954, in wsgi
File "/bottle.py", line 862, in _handle
File "/bottle.py", line 1740, in wrapper
File "/bottle_csrf.py", line 92, in wrapper
File "/__init__.py", line 79, in wrapper
File "/__init__.py", line 163, in config_page_post
File "/base.py", line 136, in save
File "/base.py", line 61, in save
File "/fapi.py", line 235, in save
File "/fapi.py", line 261, in process_callbacks
File "/misc.py", line 323, in region_form_cb
ValueError: too many values to unpack (expected 2)
Environment
{'CONTENT_LENGTH': '181',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'DOCUMENT_ROOT': '/www',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_CONTENT_LENGTH': '181',
'HTTP_COOKIE': 'available on request',
'HTTP_DNT': '1',
'HTTP_HOST': '192.168.1.1',
'HTTP_ORIGIN': 'http://192.168.1.1',
'HTTP_REFERER': 'http://192.168.1.1/foris/config/main/time/',
'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/84.0.4147.105 Safari/537.36',
'PATH_INFO': '/main/time/',
'PATH_TRANSLATED': '/www/main/time/',
'QUERY_STRING': '',
'REDIRECT_STATUS': '200',
'REMOTE_ADDR': '192.168.1.112',
'REMOTE_PORT': '50010',
'REQUEST_METHOD': 'POST',
'REQUEST_SCHEME': 'http',
'REQUEST_URI': '/foris/config/main/time/',
'SCRIPT_FILENAME': '/www/foris/config',
'SCRIPT_NAME': '/foris/config',
'SERVER_ADDR': '192.168.1.1',
'SERVER_NAME': '192.168.1.1',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'lighttpd/1.4.54',
'bottle.app': <bottle.Bottle object at 0x26960f0>,
'bottle.raw_path': '/time/',
'bottle.request': <LocalRequest: POST http://192.168.1.1/foris/config/main/time/>,
'bottle.request.body': <_io.BytesIO object at 0x27f1c00>,
'bottle.request.headers': <bottle.WSGIHeaderDict object at 0x2805160>,
'bottle.request.post': {'country': 'US',
'csrf_token': 'available on request',
'how_to_set_time': 'ntp',
'region': 'America',
'send': '',
'zonename': 'America/Indiana/Indianapolis'},
'bottle.request.urlparts': SplitResult(scheme='http', netloc='192.168.1.1', path='/foris/config/main/time/', query='', fragment=''),
'bottle.route': <POST '/<page_name:re:.+>/' <function config_page_post at 0x25b79a0>>,
'foris.backend': MqttSender('localhost:11883'),
'foris.language': 'en',
'foris.session': <foris.middleware.sessions.SessionForisProxy object at 0x28697b0>,
'foris.session.data': {'_messages': [],
'csrf_token': 'available on request,
'user_authenticated': True},
'foris.session.id': 'available on request',
'foris.version': '100.5',
'route.handle': <POST '/<page_name:re:.+>/' <function config_page_post at 0x25b79a0>>,
'route.url_args': {'page_name': 'time'},
'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x280a7c0>,
'wsgi.input': <_io.BytesIO object at 0x27f1c00>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}
I downloaded the error report as instructed, and can provide on request.