问题
And as a result, Rails is dying short before my controllers and returning :
781: unexpected token at 'stateId=resume®istration=bar&actor=null&Authorization=foo&activityId=JumrnmV_course_id&Content-Type=application/json'
This is a bit cryptic for me because I have no access to the 3rd party service. I can only append parameters to a query url and those get appended on the return payload.. which I think is corrupting my JSON..
The launch query is this :
'/system/' + @myobj.id.to_s + '/story.html' +
'?endpoint=http%3A%2F%2Fmywebsite.dev%2Fquizzes%2F' +
'&auth=foo' +
'®istration=bar'
I have to admit I'm a bit beaten up by this, and not entirely sure what direction to go from here. Does anyone have any idea how I could further decode this?
The third party service is Articulate which is sending instructions to TinCan.
来源:https://stackoverflow.com/questions/22279202/i-have-a-third-party-service-that-i-believe-is-sending-me-malformed-json