Coder Social home page Coder Social logo

Comments (8)

DunkenKBliths avatar DunkenKBliths commented on June 7, 2024

Thanks Leo...

from lxhive.

RoboSparrow avatar RoboSparrow commented on June 7, 2024

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.

RoboSparrow avatar RoboSparrow commented on June 7, 2024

@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.

DunkenKBliths avatar DunkenKBliths commented on June 7, 2024

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.

RoboSparrow avatar RoboSparrow commented on June 7, 2024

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.

DunkenKBliths avatar DunkenKBliths commented on June 7, 2024

No worries mate...looking forward to getting this working...

from lxhive.

RoboSparrow avatar RoboSparrow commented on June 7, 2024

@DunkenKBliths @sraka1

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.

sraka1 avatar sraka1 commented on June 7, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.