Comments (8)
Thanks Leo...
from lxhive.
We have a look into this. It looks like the LRS is not configured for 1.0.1
.
'The supported versions can be set in the Config.yaml of the LRS
Defaults are
xAPI:
latest_version: 1.0.3
...
supported_versions: [1.0.3]
So this should work when we change supported_versions
to [1.0.3, 1.0.1]
.
However the error returned is certainly misleading. A revision of the error handling is part of milestone 0.9.2
Apart from this I am not sure about the "Accept" header being correctly set.
from lxhive.
@sraka1 What puzzles me is that GET 360evolve.saas.lxhive.com/about endpoint returns {"version":null}
body. this is not the response I expected ({"version":[1.0.3]})
Apart from this: we need to re-issue a new token to the client and invalidate the one mentioned in the issue.
from lxhive.
I have altered the above code to point to
xmlhttp.setRequestHeader "X-Experience-API-Version", "1.0.3"
the accept is missing the asterisks on this forum but they are definitely there..
*xmlhttp.setRequestHeader "Accept", "* / " < without spaces...
the error now is
Send response error : The date in the certificate is invalid or has expired ...
Do I need to delete all my end points and start afresh ?
Also the Admin Site has been down for a while with a 500 Server Error (when I try logging in)
from lxhive.
Hi @DunkenKBliths We have an issue with the SSL certificate for this endpoint. I have logged this internally with high urgency to our Sysadmins. Apologies for that.
from lxhive.
No worries mate...looking forward to getting this working...
from lxhive.
Do I need to delete all my end points and start afresh ?
No, we just issue a new token which you replace in your Authentication header. This is just a security measure.
from lxhive.
@DunkenKBliths
Sorry this took a bit longer, I needed to install Mono as we don't use Microsoft technologies and that took some time.
There are a couple problems in here:
Firstly, as described in this SO answer, ServerXMLHTTP does not resend the headers that were set on the original request if it receives a redirect response.
You were getting a 302 redirect response, because you were calling http instead of https (we only support https for security reasons). This caused the "X-Experience-API-Version" header missing error on the second request. If you change the URL scheme in your code to https, this error disappears. This is a problem with the component you're using, not the LRS (looks like ServerXMLHTTP is not fully conformant to HTTP spec).
Secondly, the correct endpoint is /statements, not /statement.
Thirdly, it looks like you're not encoding your Authorization header? There is a ":" char in there, which isn't valid per base64 (probably forgot to do a base64 on that string?).
As for the version on the about endpoint returning null, that should now be resolved and the fix has already been deployed on production.
Please re-open this issue if you encounter any other server issues, I will close it for now. Thanks!
from lxhive.
Related Issues (20)
- Does it support CMI5 ? HOT 3
- make all header names case insensitive HOT 3
- add full support HEAD requests HOT 1
- Installation problem requires ext-mongo >=0.9.0 HOT 1
- composer warning: Package league/url is abandoned
- Resolve TODO in scr/Storage/Adapter/Mongo/OAuth.php HOT 2
- Config oauth unused properties HOT 2
- composer install - php 7.0 incompatibility (dev dependency) HOT 3
- alternate request (GET>POST) syntax support fore "more" url HOT 1
- Storage activities trim trailing slash from IRL
- temporary GET / request
- ping DB via a public endpoint HOT 1
- ExtendedQuery, pagination issue wit until_id
- Abandoned package league/url HOT 1
- Default expiry time is incorrect for temporary access tokens HOT 1
- Expose Custom headers not working HOT 1
- Change lxHive organisation and ownership HOT 1
- lxHive error launch in Moodle plugin (https://github.com/davidpesce/moodle-mod_tincanlaunch)
- /statements endpoint includes "voiding statements"
- PUT to /activities/state responds with "Cannot merge!"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxhive.