Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.

TOPIC:

xApi not working anymore 4 years 6 months ago #5890

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 305
Yes, because I hope to be able to understand what happens if I see what is actually sent to cloudscorm, and what the reply is.

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5902

  • viragom
  • viragom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
I can't send a PM...?? "I'm not permitted to view page"

2019-09-04 14:26:06 /[website]/public_html/xertetoolkits/xapi_proxy.php226xapiproxy: SESSION=Array
(
[toolkits_language] => nl-NL
[toolkits_firstname] => joep
[toolkits_surname] => jacobs
[toolkits_logon_username] => joep
[toolkits_logon_id] => 1
[toolkits_most_recent_error] => Successful login User joep logged in successfully from 217.104.73.151
[sort_type] => date_down
[XAPI_PROXY] => Array
(
[lrsendpoint] =>
This message contains confidential information

[lrskey] =>
This message contains confidential information

[lrssecret] =>
This message contains confidential information

)

)

2019-09-04 14:26:06 /[website]/public_html/xertetoolkits/xapi_proxy.php272xapi_proxy: Request uri: /xertetoolkits/xapi_proxy.php/statements
2019-09-04 14:26:06 /[website]/public_html/xertetoolkits/xapi_proxy.php309xapi_proxy: URL=
This message contains confidential information

2019-09-04 14:26:06 /[website]/public_html/xertetoolkits/xapi_proxy.php389xapi_proxy: status=Array
(
[url] => [/url]
This message contains confidential information

[content_type] => text/html;charset=utf-8
[http_code] => 429
[header_size] => 449
[request_size] => 377
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.157244
[namelookup_time] => 3.1E-5
[connect_time] => 0.010461
[pretransfer_time] => 0.046053
[size_upload] => 1973
[size_download] => 1390
[speed_download] => 8839
[speed_upload] => 12547
[download_content_length] => 1390
[upload_content_length] => 1973
[starttransfer_time] => 0.056663
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 13.224.135.164
[certinfo] => Array
(
)

[request_header] => POST
This message contains confidential information
HTTP/1.1
Authorization: Basic Zzk2b3lqTlBaQlhFZ6UlZNcVpvZG5R
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36 OPR/63.0.3368.53
Host: cloud.scorm.com
Accept: */*
Content-Type: application/json
Content-Length: 1973
Expect: 100-continue


)

Please Log in or Create an account to join the conversation.

Last edit: by tom.

xApi not working anymore 4 years 6 months ago #5904

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 305
You get a 429 error back.

That measn that according to cloudscorm, you're sending too many messages, at least according to the http error 429 definition:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429

See also this message:
https://support.scorm.com/hc/en-us/articles/360019695213-xAPI-rate-limiting-in-SCORM-Cloud

However, that also would suggest, that at least the first say 100 statements should end up in scorm cloud. Schek the log, and see if you have responses with a different http code.

I'll have a look at the PM system. You should be able to go to the profile of a person, and then press Messages->Send e-mail to user.

That works for me, but I am an admin, so I'll check whether that works for a normal user.

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5908

  • viragom
  • viragom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Hi Tom,

mainly error code 400, and now and then 429; error code 400 can be malformed URL

I noticed that in debug.log in the xapi_proxy.php code there is an extra slash (/) after the scormcloud LRS URL and before the
URL=https://cloud.scorm.com/lrs/[unique number]//statements

Same in the [request_header] section (also double /)

Maybe this is why ScormCloud refuses??

Greetz Joep

Please Log in or Create an account to join the conversation.

Last edit: by viragom.

xApi not working anymore 4 years 6 months ago #5909

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 305
I'll see if I can fix that.

Please Log in or Create an account to join the conversation.

xApi not working anymore 4 years 6 months ago #5912

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1282
  • Thank you received: 305
I don't know what is ging on, but it's not caused by the double slash. I tried it myself, and for me, it's working:
status=Array
(
    [url] => https://cloud.scorm.com/lrs/<code>//statements
    [content_type] => application/json;charset=UTF-8
    [http_code] => 200
    [header_size] => 866
    [request_size] => 373
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.356278
    [namelookup_time] => 2.9E-5
    [connect_time] => 0.013982
    [pretransfer_time] => 0.048345
    [size_upload] => 1132
    [size_download] => 40
    [speed_download] => 112
    [speed_upload] => 3177
    [download_content_length] => 40
    [upload_content_length] => 1132
    [starttransfer_time] => 0.061845
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [primary_ip] => 143.204.214.171
    [primary_port] => 443
    [local_ip] => 192.168.50.100
    [local_port] => 42435
    [redirect_url] =>
    [request_header] => POST /lrs/<code>//statements HTTP/1.1
Host: cloud.scorm.com
Authorization: Basic ....
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/76.0.3809.132 Safari/537.36
Accept: */*
Content-Type: application/json
Content-Length: 1132
X-Experience-API-Version: 1.0.1
Expect: 100-continue


)

Please Log in or Create an account to join the conversation.

Last edit: by tom.
Moderators: ronmjultenjjs
Time to create page: 0.087 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search