Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRS returns 'description' #1

Closed
aukejw opened this issue Jul 31, 2013 · 1 comment
Closed

LRS returns 'description' #1

aukejw opened this issue Jul 31, 2013 · 1 comment
Assignees
Labels

Comments

@aukejw
Copy link
Collaborator

aukejw commented Jul 31, 2013

Instead of returning the statementid of this valid statement after instertion, gives 505 and returns the word 'description' as string.

from tincan_api import TinCan
from coach import settings
tc = TinCan(settings.TINCAN['username'],
            settings.TINCAN['password'],
            settings.TINCAN['endpoint'])
tc.submitStatement({
    'verb': {'id': 'http://adlnet.gov/expapi/verbs/progressed',
             'display': {'en-US': 'progressed'}},
    'actor': {'mbox': 'mailto:auke', 'name': 'auke'},
    'object': {'definition':
                 {'type': 'http://adlnet.gov/expapi/activities/question',
                  'name': {'en-US': 'question'}},
               'id': 'http://www.uva.nl/question1'}})
@ghost ghost assigned mslatour Jul 31, 2013
@mslatour
Copy link
Collaborator

It seems to work when you add a description to the activity definition.

Reproduce by replacing the submit call with:

tc.submitStatement({'verb': {'id': 'http://adlnet.gov/expapi/verbs/progressed','display': {'en-US': 'progressed'}},'actor': {'mbox': 'mailto:auke', 'name': 'auke'},'object':{'definition':{'type': 'http://adlnet.gov/expapi/activities/question','description':{'en-US': 'question'},'name': {'en-US': 'question'}},'id': 'http://www.uva.nl/question1'}})

@aukejw aukejw closed this as completed Aug 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants