360 Degree Learning
360 Degree Learning
360 Degree Learning
360 Degree Learning
360 Degree Learning
360 Degree Learning
Skip to main content

Xapi testing

Completion requirements
object(TinCan\LRSResponse)#1823 (3) { ["success"]=> bool(false) ["content"]=> string(126) "Error:Invalid email id [root@localhost] for agent: {"objectType":"Agent","name":"Guest user ","mbox":"mailto:root@localhost"}" ["httpResponse"]=> array(4) { ["status"]=> int(400) ["headers"]=> array(5) { ["contentType"]=> string(9) "text/html" ["date"]=> string(29) "Tue, 30 Apr 2024 06:21:37 GMT" ["apiConsistentThrough"]=> string(24) "2024-04-30T06:21:37.880Z" ["apiVersion"]=> string(5) "1.0.0" ["contentTypeCharset"]=> string(5) "UTF-8" } ["_content"]=> string(126) "Error:Invalid email id [root@localhost] for agent: {"objectType":"Agent","name":"Guest user ","mbox":"mailto:root@localhost"}" ["_metadata"]=> array(11) { ["crypto"]=> array(4) { ["protocol"]=> string(7) "TLSv1.2" ["cipher_name"]=> string(27) "ECDHE-RSA-AES256-GCM-SHA384" ["cipher_bits"]=> int(256) ["cipher_version"]=> string(7) "TLSv1.2" } ["timed_out"]=> bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(false) ["wrapper_data"]=> array(16) { [0]=> string(24) "HTTP/1.1 400 Bad Request" [1]=> string(13) "Server: nginx" [2]=> string(35) "Date: Tue, 30 Apr 2024 06:21:37 GMT" [3]=> string(38) "Content-Type: text/html; charset=UTF-8" [4]=> string(19) "Content-Length: 126" [5]=> string(17) "Connection: close" [6]=> string(24) "X-Powered-By: PHP/7.4.19" [7]=> string(30) "Access-Control-Allow-Origin: *" [8]=> string(28) "Access-Control-Max-Age: 3600" [9]=> string(54) "Access-Control-Allow-Methods: HEAD,GET,POST,PUT,DELETE" [10]=> string(183) "Access-Control-Allow-Headers: X-Requested-With,User-Agent,Content-Type,Content-Length,Authorization,If-Match,If-None-Match,X-Experience-API-Version,X-Experience-API-Consistent-Through" [11]=> string(169) "Access-Control-Expose-Headers: ETag,Last-Modified,Cache-Control,Content-Type,Content-Length,WWW-Authenticate,X-Experience-API-Version,X-Experience-API-Consistent-Through" [12]=> string(31) "X-Experience-API-Version: 1.0.0" [13]=> string(147) "Set-Cookie: GRASSBLADELRS=v0cjtcovv8atdpm9flipo3lkft; expires=Tue, 30-Apr-2024 10:21:37 GMT; Max-Age=14400; path=/; secure; HttpOnly; SameSite=None" [14]=> string(23) "Cache-Control: no-cache" [15]=> string(61) "X-Experience-API-Consistent-Through: 2024-04-30T06:21:37.880Z" } ["wrapper_type"]=> string(4) "http" ["stream_type"]=> string(14) "tcp_socket/ssl" ["mode"]=> string(2) "rb" ["unread_bytes"]=> int(126) ["seekable"]=> bool(false) ["uri"]=> string(298) "https://test.gblrs.com/xAPI/activities/state?activityId=https%3A%2F%2Fexample.com%2Fexample-activity&agent=%7B%22objectType%22%3A%22Agent%22%2C%22name%22%3A%22Guest%20user%20%20%22%2C%22mbox%22%3A%22mailto%3Aroot%40localhost%22%7D&stateId=http%3A%2F%2Ftincanapi.co.uk%2Fstateapikeys%2Fregistrations" } } }

Error attempting to get registration data from State API.

  • line 77 of /mod/tincanlaunch/view.php: call to debugging()