I have a third party service that I believe is sending me malformed JSON

浪尽此生 提交于 2019-12-12 06:38:21

问题


And as a result, Rails is dying short before my controllers and returning :

781: unexpected token at 'stateId=resume&registration=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' +
  '&registration=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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!