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

Internal Server Error: /ts_om_edit/1821/healthsystem/ (edited) #70

Open
Baguage opened this issue May 31, 2017 · 0 comments
Open

Internal Server Error: /ts_om_edit/1821/healthsystem/ (edited) #70

Baguage opened this issue May 31, 2017 · 0 comments

Comments

@Baguage
Copy link
Member

Baguage commented May 31, 2017

Internal Server Error: /ts_om_edit/1821/healthsystem/
Traceback (most recent call last):
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/edit.py", line 213, in post
form = self.get_form()
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/edit.py", line 35, in get_form_with_form_class
return get_form(self, form_class=form_class)
File "/opt/portal/om.vecnet.org/website/apps/ts_om_edit/views/ScenarioBaseFormView.py", line 69, in get_form
return super(ScenarioBaseFormView, self).get_form(form_class)
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/edit.py", line 74, in get_form
return form_class(**self.get_form_kwargs())
File "/opt/venvs/om.vecnet.org/lib/python2.7/site-packages/django/views/generic/edit.py", line 81, in get_form_kwargs
'initial': self.get_initial(),
File "/opt/portal/om.vecnet.org/website/apps/ts_om_edit/views/ScenarioHealthSystemView.py", line 50, in get_initial
initial = {"first_line_drug": self.scenario.healthSystem.ImmediateOutcomes.firstLine}
AttributeError: 'NoneType' object has no attribute 'healthSystem'

Request repr():
<WSGIRequest
path:/ts_om_edit/1821/healthsystem/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'xml': [u'\r\n<om:scenario xmlns:om="http://openmalaria.org/schema/scenario_32" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="vecnet10" schemaVersion="32" xsi:schemaLocation="http://openmalaria.org/schema/scenario_32 scenario_32.xsd">\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 730\r\n 803\r\n 876\r\n 949\r\n 1022\r\n 1095\r\n 1168\r\n 1241\r\n 1314\r\n 1387\r\n 1460\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 1.24809152423000\r\n 1.44338266285000\r\n 1.44426436615000\r\n 1.39683522308000\r\n 1.17719762640000\r\n 1.27900296880000\r\n 1.38080610960000\r\n 1.32684316880000\r\n 1.11510117000000\r\n 0.80899776360000\r\n 0.66962010724000\r\n 0.87156234040000\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 0.12195094757700\r\n 0.15003343373100\r\n 0.13578316953800\r\n 0.14250730738500\r\n 0.12160516792000\r\n 0.13206939100000\r\n 0.14132650592000\r\n 0.12974214888000\r\n 0.10223384536000\r\n 0.08159456812000\r\n 0.06735898480000\r\n 0.08462085352000\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 0.68087154500000\r\n 0.88260403269200\r\n 1.01475682885000\r\n 1.14115038462000\r\n 1.08244246560000\r\n 1.00177528560000\r\n 0.84910486440000\r\n 0.70008667400000\r\n 0.63749115320000\r\n 0.55536272920000\r\n 0.51581716920000\r\n 0.56576189328000\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 0.00671318623077\r\n 0.00800465111538\r\n 0.00962871430769\r\n 0.01012465657690\r\n 0.01069453056000\r\n 0.00859940408000\r\n 0.00751913048000\r\n 0.00605555644000\r\n 0.00453459720000\r\n 0.00512043860000\r\n 0.00477358280000\r\n 0.00591000028000\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n '], u'perc_formal_care': [u'95'], u'first_line_drug': [u'ACT'], u'submit': [u'ts_om.monitoring'], u'perc_total_treated': [u'100']}>,

'__utma': '246066691.50782747.1491486201.1495545456.1496150665.10',
'__utmb': '246066691.3.10.1496150665',
'__utmc': '246066691',
'__utmt': '1',
'__utmz': '246066691.1495545456.9.8.utmcsr=bing|utmcc},
META:{'CONTENT_LENGTH': '23948',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'CONTEXT_DOCUMENT_ROOT': '/opt/portal/om.vecnet.org',
'CONTEXT_PREFIX': '',
'DOCUMENT_ROOT': '/opt/portal/om.vecnet.org',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html, application/xhtml+xml, /',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'de-CH',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_DNT': '1',
'HTTP_HOST': 'om.vecnet.org',
'HTTP_REFERER': 'https://om.vecnet.org/ts_om_edit/1821/healthsystem/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko',
'PATH_INFO': u'/ts_om_edit/1821/healthsystem/',
'PATH_TRANSLATED': '/opt/portal/om.vecnet.org/wsgi.py/ts_om_edit/1821/healthsystem/',
'QUERY_STRING': '',
'REMOTE_ADDR': '131.152.36.42',
'REMOTE_PORT': '60269',
'REQUEST_METHOD': 'POST',
'REQUEST_SCHEME': 'https',
'REQUEST_URI': '/ts_om_edit/1821/healthsystem/',
'SCRIPT_FILENAME': '/opt/portal/om.vecnet.org/wsgi.py',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '129.74.246.154',
'SERVER_ADMIN': 'root@localhost',
'SERVER_NAME': 'om.vecnet.org',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '',
'SERVER_SOFTWARE': 'Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5',
'SSL_TLS_SNI': 'om.vecnet.org',
'UNIQUE_ID': 'WS1y@bcyjFEOFyVcX-NggwAAAAY',
'mod_wsgi.application_group': 'om.vecnet.org|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.enable_sendfile': '0',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '443',
'mod_wsgi.process_group': 'om',
'mod_wsgi.queue_start': '1496150777170462',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 4),
'wsgi.errors': <mod_wsgi.Log object at 0x7f071d5b6030>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f071d838be8>,
'wsgi.input': <mod_wsgi.Input object at 0x7f071d83d270>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>

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

1 participant