Closed jfsantos closed 6 years ago
When I try to access caqe.local:5000/mturk_debug on my local machine, Chrome says that caqe.local sent an invalid response. I get this on my logs:
caqe.local:5000/mturk_debug
caqe.local
127.0.0.1 - - [18/May/2018 15:43:17] "GET /mturk_debug HTTP/1.1" 200 - 127.0.0.1 - - [18/May/2018 15:43:17] "GET /mturk?assignmentId=123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE&hitId=123RVWYBAZW00EXAMPLE&turkSubmitTo=https://workersandbox.mturk.com&workerId=debugNQFUCL HTTP/1.1" 302 - 127.0.0.1 - - [18/May/2018 15:43:17] code 400, message Bad request syntax ("\x16\x03\x01\x00\xc1\x01\x00\x00\xbd\x03\x03\xa5'\xad\xf8\xc5\xc4m\x91\x9c\x98\x8d\xca\xca\xb3\xfa\xfba\xea}C\x12\x93f$q\xdb\xf3\xc2\xbf\xc4\x95'\x00\x00\x1c\xaa\xaa\xc0+\xc0/\xc0,\xc00\xcc\xa9\xcc\xa8\xc0\x13\xc0\x14\x00\x9c\x00\x9d\x00/\x005\x00") 127.0.0.1 - - [18/May/2018 15:43:17] "���'����m�����ʳ��a�}C�f$q��¿ĕ'���+�/�,�0̨̩����/5" 400 -
The same does not happen if I upload the code to Heroku, but then it is a lot harder to debug properly. Any ideas on what might be causing this issue?
Closing this. Issue was that APP_MODE needs to be set in all-caps and I was using APP_MODE=development instead of APP_MODE=DEVELOPMENT.
APP_MODE
APP_MODE=development
APP_MODE=DEVELOPMENT
When I try to access
caqe.local:5000/mturk_debug
on my local machine, Chrome says thatcaqe.local
sent an invalid response. I get this on my logs:The same does not happen if I upload the code to Heroku, but then it is a lot harder to debug properly. Any ideas on what might be causing this issue?