Hi everyone, strangely for us, even after upgrading to 3.3.2 the problem isn't fixed, we are seeing "invalid json in request: Syntax error" in the app
We're running Moodle 3.3.2 on PHP 7.0.22 with LDAP authentication and full HTTPS HSTS (could this be a problem?) I have tried prefixing the URL with https:// in the app but that didn't make a difference.
In the PHP error log we are seeing the following recorded:
2017/09/26 08:36:34 [error] 1330#1330: *1177072 FastCGI sent in stderr: "PHP message: Default exception handler: A required parameter (username) was missing Debug:
Error code: missingparam
* line 503 of /lib/setuplib.php: moodle_exception thrown
* line 568 of /lib/moodlelib.php: call to print_error()
* line 34 of /login/token.php: call to required_param()" while reading response header from upstream, client: 123.123.123.123, server: moodle.domain.uk, request: "POST /login/token.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "moodle.domain.uk"
2017/09/26 08:36:34 [error] 1330#1330: *1177072 FastCGI sent in stderr: "PHP message: Default exception handler: Exception - Call to a member function out() on string Debug:
Error code: generalexceptionmessage
* line 156 of /admin/tool/mobile/classes/api.php: Error thrown
* line 119 of /admin/tool/mobile/classes/external.php: call to tool_mobile\api::get_public_config()
* line 228 of /lib/externallib.php: call to tool_mobile\external::get_public_config()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()" while reading response header from upstream, client: 123.123.123.123, server: moodle.domain.uk, request: "POST /lib/ajax/service.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "moodle.domain.uk"
2017/09/26 08:36:34 [error] 1330#1330: *1177072 FastCGI sent in stderr: "PHP message: Default exception handler: A required parameter (username) was missing Debug:
Error code: missingparam
* line 503 of /lib/setuplib.php: moodle_exception thrown
* line 568 of /lib/moodlelib.php: call to print_error()
* line 34 of /login/token.php: call to required_param()" while reading response header from upstream, client: 123.123.123.123, server: moodle.domain.uk, request: "GET /login/token.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "moodle.domain.uk"
2017/09/26 08:36:34 [error] 1330#1330: *1177072 FastCGI sent in stderr: "PHP message: Default exception handler: Coding error detected, it must be fixed by a programmer: Invalid json in request: Syntax error Debug:
Error code: codingerror
* line 42 of /lib/ajax/service.php: coding_exception thrown" while reading response header from upstream, client: 123.123.123.123, server: moodle.domain.uk, request: "GET /lib/ajax/service.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "moodle.domain.uk"