muccg / rdrf

The Rare Disease Registry Framework (RDRF) is an open source tool for the creation of web-based patient registries.
GNU Affero General Public License v3.0
15 stars 8 forks source link

proms can't be filled out - blank page after clicking Begin Survey #826

Closed id2359 closed 5 years ago

id2359 commented 5 years ago

I'm seeing:

[INFO:2019-05-15 11:20:04,900:auth.py:12:authenticate] authenticating proms
[INFO:2019-05-15 11:20:04,900:auth.py:15:authenticate] token from request: None
[INFO:2019-05-15 11:20:04,900:auth.py:17:authenticate] settings proms token: foobar
[INFO:2019-05-15 11:20:04,900:auth.py:19:authenticate] settings proms user: promsuser
[INFO:2019-05-15 11:20:04,901:auth.py:22:authenticate] tokens don't match - failed to auth
[DEBUG:2019-05-15 11:20:04,901:proms_api.py:84:post] received download request ...
[DEBUG:2019-05-15 11:20:04,905:proms_api.py:87:post] serialised surveys
[DEBUG:2019-05-15 11:20:04,915:proms_api.py:89:post] deleted completed surveys that were downloaded

in the cic proms logs

id2359 commented 5 years ago

Two issues:

The secret token is None ( see above) Second issue was logic error in handling SYSTEM_ROLE env var. I've refactored the handling of SYSTEM ROLE , enum unneccessary, the context processor not really neccessary

id2359 commented 5 years ago

It was the CIC_PROMS system role urls list